Showing posts with label deploying. Show all posts
Showing posts with label deploying. Show all posts

Monday, March 12, 2012

Report SnapShot Creation Programmatically through Java

Hi,

I am facing some issues while creating report snapshots programmatically using axis (Java platform for creating and deploying web services applications).

To create a report snapshot what should be the methods called ? I tried using UpdateReportExecutionSnapshot() but didn't find any parameters to set the schedule information which would say when the execute the report snapshot. Can you please guide me for this ?

Also I had one more doubt regarding report snapshots. If a parameterized report is configured as snapshot then we would require to set default parameters for the report.

Is there a way to create snapshots of the same report with different parameters ?

eg : The employee information report displays the information based on the employee id taken as a parameter. So is it possible to create snapshots with different employee id's ?

Thanks,

Amit Shah.

For configuring snapshots programmatically you can call SetReportHistoryOptions SOAP API. But for the task as you described you better pre-populate cache using subscriptions with Null Delivery Provider. You can create multiple ordinal subscriptions with different parameter sets or create one data-driven subscription which will iterate through different parameter sets (e.g. users) via query. Then configure report execution options to allow rendering the report from the cache. See: http://msdn2.microsoft.com/en-us/library/ms155927.aspx and http://msdn2.microsoft.com/en-us/library/ms155876.aspx

|||

Thanks for the replies.

I tried create a report snapshots and saving it in the report history by using the CreateReportHistorySnapshot() method call, but facing some issues with it.

The report being used to create the snapshot is a parameterized report. Hence before calling CreateReportHistorySnapshot() I call setReportParameters(). I pseudo code is something like this :

for( int i=0; i<10; i++) {

reportSnapshot.setParameters(parameterValue)

reportSnapshot.createReportHistorySnapShot().

}

But when I check the report History it has only 4 snapshots created (instead of 10). I confirmed that the report parameters are set properly by calling getReportParameters().

One more important point is that the last report was not having the latest parameter values passed i.e the snapshot was not having the values which are passed during the 10th iteration. It was having values passed during the 7th iteration(this was also not consistent).

Can anyone please guide me.

Thanks in advance.

|||

I don’t have an explanation why you’re missing some reports in the history snapshots. Analyze warnings returned by this API and log file. But history snapshots are not used as cached reports anyways. I would advise exploring Null Delivery Provider for pre-populating the cache as I pointed in my previous reply.

-Igor|||Just to add to my previous posting. The likely reason you are missing some reports in the history is the following. By design RS keeps unique index on ReportID+SnapshotCreateDate in History table, and timestamp’s granularity is in seconds. If report’s default parameters are changed and new snapshot is being created within same second as previously created snapshot, then the last one will be discarded. The bad thing is that RS won’t return an error on CreateReportHistorySnapshot call. This is the known issue.|||

I liked this thread so much, I just blogged about it. Here's the post:

http://blogs.msdn.com/lukaszp/archive/2007/01/12/per-user-snapshots-or-multiple-snapshots-for-a-report-each-with-different-parameters-at-the-same-time.aspx

-Lukasz

|||

Thanks a lot for the replies.

But as you mentioned that :

If report’s default parameters are changed and new snapshot is being created within same second as previously created snapshot, then the last one will be discarded. The bad thing is that RS won’t return an error on CreateReportHistorySnapshot call. This is the known issue.

So if I dont change the parameters or create a snapshot of a report which does not have any parameters, then will more than one snapshots get created in one second ?

I tried this programmatically but the snapshot was not getting created for a parameterless report & also when the reports parameters were not changed. Just wanted to confirm on whether I was doing some thing wrong or it is because of the timestamp's granularity is set in seconds.

Thanks in advance.

|||I believe nothing wrong with your code - it happens because timestamp's granularity is set in seconds.

Report SnapShot Creation Programmatically through Java

Hi,

I am facing some issues while creating report snapshots programmatically using axis (Java platform for creating and deploying web services applications).

To create a report snapshot what should be the methods called ? I tried using UpdateReportExecutionSnapshot() but didn't find any parameters to set the schedule information which would say when the execute the report snapshot. Can you please guide me for this ?

Also I had one more doubt regarding report snapshots. If a parameterized report is configured as snapshot then we would require to set default parameters for the report.

Is there a way to create snapshots of the same report with different parameters ?

eg : The employee information report displays the information based on the employee id taken as a parameter. So is it possible to create snapshots with different employee id's ?

Thanks,

Amit Shah.

For configuring snapshots programmatically you can call SetReportHistoryOptions SOAP API. But for the task as you described you better pre-populate cache using subscriptions with Null Delivery Provider. You can create multiple ordinal subscriptions with different parameter sets or create one data-driven subscription which will iterate through different parameter sets (e.g. users) via query. Then configure report execution options to allow rendering the report from the cache. See: http://msdn2.microsoft.com/en-us/library/ms155927.aspx and http://msdn2.microsoft.com/en-us/library/ms155876.aspx

|||

Thanks for the replies.

I tried create a report snapshots and saving it in the report history by using the CreateReportHistorySnapshot() method call, but facing some issues with it.

The report being used to create the snapshot is a parameterized report. Hence before calling CreateReportHistorySnapshot() I call setReportParameters(). I pseudo code is something like this :

for( int i=0; i<10; i++) {

reportSnapshot.setParameters(parameterValue)

reportSnapshot.createReportHistorySnapShot().

}

But when I check the report History it has only 4 snapshots created (instead of 10). I confirmed that the report parameters are set properly by calling getReportParameters().

One more important point is that the last report was not having the latest parameter values passed i.e the snapshot was not having the values which are passed during the 10th iteration. It was having values passed during the 7th iteration(this was also not consistent).

Can anyone please guide me.

Thanks in advance.

|||

I don’t have an explanation why you’re missing some reports in the history snapshots. Analyze warnings returned by this API and log file. But history snapshots are not used as cached reports anyways. I would advise exploring Null Delivery Provider for pre-populating the cache as I pointed in my previous reply.

-Igor|||Just to add to my previous posting. The likely reason you are missing some reports in the history is the following. By design RS keeps unique index on ReportID+SnapshotCreateDate in History table, and timestamp’s granularity is in seconds. If report’s default parameters are changed and new snapshot is being created within same second as previously created snapshot, then the last one will be discarded. The bad thing is that RS won’t return an error on CreateReportHistorySnapshot call. This is the known issue.|||

I liked this thread so much, I just blogged about it. Here's the post:

http://blogs.msdn.com/lukaszp/archive/2007/01/12/per-user-snapshots-or-multiple-snapshots-for-a-report-each-with-different-parameters-at-the-same-time.aspx

-Lukasz

|||

Thanks a lot for the replies.

But as you mentioned that :

If report’s default parameters are changed and new snapshot is being created within same second as previously created snapshot, then the last one will be discarded. The bad thing is that RS won’t return an error on CreateReportHistorySnapshot call. This is the known issue.

So if I dont change the parameters or create a snapshot of a report which does not have any parameters, then will more than one snapshots get created in one second ?

I tried this programmatically but the snapshot was not getting created for a parameterless report & also when the reports parameters were not changed. Just wanted to confirm on whether I was doing some thing wrong or it is because of the timestamp's granularity is set in seconds.

Thanks in advance.

|||I believe nothing wrong with your code - it happens because timestamp's granularity is set in seconds.

Report Size Limitation

Has anyone had issues with deploying large reports to a report server? I am
trying to deploy a 4061 Kb ".rdl" file. I get the error "Maximum request
length exceeded."
Is there any way to increase the acceptable file size or is this a
limitation of the product?
Any advice would be most appreciated.
Thankyou :)In the c:\windows\microsoft.net\framework\v1.1.4322\config\machine.config,
you can increase the file size. Search for maxRequestLength.
--
This posting is provided "AS IS" with no warranties, and confers no rights
"Darren" <Darren@.discussions.microsoft.com> wrote in message
news:B5FD289D-C0B7-48D7-B3A3-C8D888BA3826@.microsoft.com...
> Has anyone had issues with deploying large reports to a report server? I
am
> trying to deploy a 4061 Kb ".rdl" file. I get the error "Maximum request
> length exceeded."
> Is there any way to increase the acceptable file size or is this a
> limitation of the product?
> Any advice would be most appreciated.
> Thankyou :)
>|||Hi Darren:
By default ASP.NET uploads are limited to 4MB. You can change this
limit in the server's machine.config file.
Details are here:
PRB: Cannot Upload Large Files When You Use the HtmlInputFile Server
Control
http://support.microsoft.com/default.aspx?scid=kb;EN-US;295626
Hope this helps,
--
Scott
http://www.OdeToCode.com
On Tue, 10 Aug 2004 15:43:02 -0700, Darren
<Darren@.discussions.microsoft.com> wrote:
>Has anyone had issues with deploying large reports to a report server? I am
>trying to deploy a 4061 Kb ".rdl" file. I get the error "Maximum request
>length exceeded."
>Is there any way to increase the acceptable file size or is this a
>limitation of the product?
>Any advice would be most appreciated.
>Thankyou :)|||Thankyou Champion :)
That solved it...
"Brian Hartman [MSFT]" wrote:
> In the c:\windows\microsoft.net\framework\v1.1.4322\config\machine.config,
> you can increase the file size. Search for maxRequestLength.
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
> "Darren" <Darren@.discussions.microsoft.com> wrote in message
> news:B5FD289D-C0B7-48D7-B3A3-C8D888BA3826@.microsoft.com...
> > Has anyone had issues with deploying large reports to a report server? I
> am
> > trying to deploy a 4061 Kb ".rdl" file. I get the error "Maximum request
> > length exceeded."
> >
> > Is there any way to increase the acceptable file size or is this a
> > limitation of the product?
> >
> > Any advice would be most appreciated.
> >
> > Thankyou :)
> >
>
>|||Darren:
On the web server that you are deploying toâ?¦ The ReportServer application
(Reporting Services WebService App) web.config file must have the following
settingâ?¦.. <httpRuntime maxRequestLength="32768" />
This setting is within the system.web node of the web.config fileâ?¦without
this setting the maxRequestLength is set to 4096K by default..not enough for
long reports
Regards,
Dean Nero
Momentun Healthware Inc.
"Darren" wrote:
> Has anyone had issues with deploying large reports to a report server? I am
> trying to deploy a 4061 Kb ".rdl" file. I get the error "Maximum request
> length exceeded."
> Is there any way to increase the acceptable file size or is this a
> limitation of the product?
> Any advice would be most appreciated.
> Thankyou :)
>

Saturday, February 25, 2012

Report Server & Manager Oddity

After installing the server components on our win2000k sp4 server
(running sql2000 sp3) and deploying a test report, browsing to the
report server simply shows a directory listing of the report folder. I
can run the report by and it runs fine, but there's no management
interface - just a file listing.
The Report Service is running; .net has been registered successfully.
Maybe associated is the fact that when browsing to the Report Manager I
get a display of the folder.aspx page, but no active icons except a link
to an empty subscriptions page.
(I haven't installed the RS SP1 yet - was hoping to confirm a successful
base install before going there.)
I'm so new to .net that my head is spinning, but it seems that I'm just
missing something simple. Any help that gets this thing running will be
a huge relief.
Thanks,
KevinHi bro...
Please check if you opening reportserver or report manager. Normal urls are-
REPORT MANAGER: http://localhost/reports
REPORT SERVER: http://localhost/reportserver
Also please see if you are logged in as administrator of your local machine.
"Kev@.OneThreeServices.com" wrote:
> After installing the server components on our win2000k sp4 server
> (running sql2000 sp3) and deploying a test report, browsing to the
> report server simply shows a directory listing of the report folder. I
> can run the report by and it runs fine, but there's no management
> interface - just a file listing.
> The Report Service is running; .net has been registered successfully.
> Maybe associated is the fact that when browsing to the Report Manager I
> get a display of the folder.aspx page, but no active icons except a link
> to an empty subscriptions page.
> (I haven't installed the RS SP1 yet - was hoping to confirm a successful
> base install before going there.)
> I'm so new to .net that my head is spinning, but it seems that I'm just
> missing something simple. Any help that gets this thing running will be
> a huge relief.
> Thanks,
> Kevin
>|||You got to the wrong virtual directory.
If you mean the file listing which is represented by the Reporting Server,
you are heading to
http://localhost/ReportServer
the URL to get to the Managing Interface is, just keep track that you
inserted the right URL:
http://localost/reports which will redirect you to the managing interface.
HTH, Jens Suessmeyer.
--
http://www.sqlserver2005.de
--
<Kev@.OneThreeServices.com> schrieb im Newsbeitrag
news:MPG.1cced271f5a89535989680@.news.microsoft.com...
> After installing the server components on our win2000k sp4 server
> (running sql2000 sp3) and deploying a test report, browsing to the
> report server simply shows a directory listing of the report folder. I
> can run the report by and it runs fine, but there's no management
> interface - just a file listing.
> The Report Service is running; .net has been registered successfully.
> Maybe associated is the fact that when browsing to the Report Manager I
> get a display of the folder.aspx page, but no active icons except a link
> to an empty subscriptions page.
> (I haven't installed the RS SP1 yet - was hoping to confirm a successful
> base install before going there.)
> I'm so new to .net that my head is spinning, but it seems that I'm just
> missing something simple. Any help that gets this thing running will be
> a huge relief.
> Thanks,
> Kevin|||Here's what I have: My server is named wcserver3, my virtual
directories in IIS= ReportManager and ReportWeb (named by a convention
for our company).
drilling to http://wcserver3/Reportweb gets me a directory listing of
the single test report but no management tools - just a raw directory
listing.
drilling to http://wcserver3/reportmanager gets me a nicely formatted
but empty folder.aspx page.
Is this thing totally screwed up and should I expect better results if I
uninstall/reinstall?
Kevin|||Yes, I'm logged on as a domain admin and although the virtual
directories are named a bit different (ReportManager and ReportWeb)
drilling to the respective folders still presents nothing with any
management features.
Weird thing is that the test report deploys fine from VisualBasic.net
and the report runs if I manually drill through a standard directory
listing to the report file. It's just that all the managment features
of reporting services simply aren't there.
Kevin|||If you see nothing it a point of security settings, check the security
settings of the virtual directory that you surely log on with your windows
credentials.
HTH, Jens Suessmeyer.
--
http://www.sqlserver2005.de
--
<Kev@.kev.com> schrieb im Newsbeitrag
news:MPG.1cceeae023aa1f16989681@.news.microsoft.com...
> Here's what I have: My server is named wcserver3, my virtual
> directories in IIS= ReportManager and ReportWeb (named by a convention
> for our company).
> drilling to http://wcserver3/Reportweb gets me a directory listing of
> the single test report but no management tools - just a raw directory
> listing.
> drilling to http://wcserver3/reportmanager gets me a nicely formatted
> but empty folder.aspx page.
>
> Is this thing totally screwed up and should I expect better results if I
> uninstall/reinstall?
> Kevin|||Are you setup for anonymous access. If so, then it treats everybody the
same. So even though you have admin privileges ReportManager treats you the
same as a user with very low privileges.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
<Kev@.kev.com> wrote in message
news:MPG.1cceec5a25c01911989682@.news.microsoft.com...
> Yes, I'm logged on as a domain admin and although the virtual
> directories are named a bit different (ReportManager and ReportWeb)
> drilling to the respective folders still presents nothing with any
> management features.
> Weird thing is that the test report deploys fine from VisualBasic.net
> and the report runs if I manually drill through a standard directory
> listing to the report file. It's just that all the managment features
> of reporting services simply aren't there.
> Kevin|||That seems to have been the issue - I'm not sure when I set the
anonymous access on the virtual folders, but resetting to use only
integrated authentication resulted in being able to get all the
management options. Both you and Jens were right on the issue.
Thanks so much for the help!