Showing posts with label snapshots. Show all posts
Showing posts with label snapshots. Show all posts

Sunday, February 19, 2012

Execution snapshots not being added to report history

Hello,
I'm trying to generate a snapshot everytime a report is viewed. I've setup
the properties of the report to "Store all report execution snapshots in
history" but no report is being created under the History tab.
The datasource uses hardcoded credentials.
The only thing I have found in the log file that may relate to this is the
following (but it does not consistently occur every time):
INFO: LoadSnapshot: Item with session: [session id], reportPath: [report
path], userName: [my username] not found in the database
Can anyone help?
ThanksDo you have the report set up to run on an Execution snapshot? That setting
is on the Execution subtab (Under the properties tab). If not then no
execution snapshots are being created, so none are being stored.
There is no setting to create a report execution snapshot on each viewing.
Execution snapshots can only be created manually (via the SOAP Api or
checking the check box in Report Manager) or on a schedule.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ian F" <IanF@.discussions.microsoft.com> wrote in message
news:CF1B4CBA-B0B1-4A6B-9433-DE65CB817749@.microsoft.com...
> Hello,
> I'm trying to generate a snapshot everytime a report is viewed. I've
setup
> the properties of the report to "Store all report execution snapshots in
> history" but no report is being created under the History tab.
> The datasource uses hardcoded credentials.
> The only thing I have found in the log file that may relate to this is the
> following (but it does not consistently occur every time):
> INFO: LoadSnapshot: Item with session: [session id], reportPath: [report
> path], userName: [my username] not found in the database
> Can anyone help?
> Thanks

Execution snapshots and datetime

Hello, I need some help with a problem i'm encountering:
I have a parameter named "startDate" defined in a report. The data type for
this parameter is DateTime and the default value I set in the report is
Non-queried with =Now() as the value. This value is sent to a SQL sProc.
When I run the report through my ASP.net page, it displays nicely.
I'm trying to use execution snapshots for this report with nightly email
subscriptions because the report returns large amounts of data and we can't
have it process the report at peak business hours. However when I try to set
up execution snapshots with this report, and set the startDate parameter
default value to =Now() in Report Manager, I get the error of "The property
of report parameter startDate doesn't have the expected type."
So then I changed the data type for parameter startDate to String and set
the value to =Now() in Report manager. At least now it takes the value. But
when trying to setup the snapshot again, I receive "Syntax error converting
datetime from character string" even though I use the convert function in
the SQL sProc. I need the snapshot to generate reports on a per week basis
and I can't hardcode a date in the parameter field like "9/9/2004". It has
to be =Now() so it can generate a snapshot per week automatically with that
weeks data. I've tried everything and i can't get it to work. Is there
anyway I can get Now() or DateAdd() to work in a datetime (or string if I
have to) field using execution snapshots? thank youYou cannot change an expression-based default value once the report is
published on the report server. When you type in =Now, then it is
interpreted as string "=Now" and *not* as expression.
You will need delete the report from report server, load the RDL file in
report designer, set the expression-based default value there (e.g. =Now or
=Today) and then republish the report to the report server.
Then you should be able to create execution snapshots without any issues.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Mark" <idroppeddabomb@.hotmail.com> wrote in message
news:eq5E2bplEHA.1652@.TK2MSFTNGP09.phx.gbl...
> Hello, I need some help with a problem i'm encountering:
> I have a parameter named "startDate" defined in a report. The data type
for
> this parameter is DateTime and the default value I set in the report is
> Non-queried with =Now() as the value. This value is sent to a SQL sProc.
> When I run the report through my ASP.net page, it displays nicely.
> I'm trying to use execution snapshots for this report with nightly email
> subscriptions because the report returns large amounts of data and we
can't
> have it process the report at peak business hours. However when I try to
set
> up execution snapshots with this report, and set the startDate parameter
> default value to =Now() in Report Manager, I get the error of "The
property
> of report parameter startDate doesn't have the expected type."
> So then I changed the data type for parameter startDate to String and set
> the value to =Now() in Report manager. At least now it takes the value.
But
> when trying to setup the snapshot again, I receive "Syntax error
converting
> datetime from character string" even though I use the convert function in
> the SQL sProc. I need the snapshot to generate reports on a per week basis
> and I can't hardcode a date in the parameter field like "9/9/2004". It has
> to be =Now() so it can generate a snapshot per week automatically with
that
> weeks data. I've tried everything and i can't get it to work. Is there
> anyway I can get Now() or DateAdd() to work in a datetime (or string if I
> have to) field using execution snapshots? thank you
>

Execution snapshots

Does the scheduler for executing a snapshot just simply not work?
Is there a known issue with this? I've tried everything, daily, weekly, on
and on...the only way i've ever gotten a snapshot to execute ever, is by
checking the "execute a snapshot when the apply button is clicked".
Anyone?
Thanks,
BrianSorry for the obvious question, but is SQL Server Agent started?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"G" <brian.grant@.si-intl-kc.com> wrote in message news:O5way6JrEHA.3172@.TK2MSFTNGP10.phx.gbl...
> Does the scheduler for executing a snapshot just simply not work?
> Is there a known issue with this? I've tried everything, daily, weekly, on
> and on...the only way i've ever gotten a snapshot to execute ever, is by
> checking the "execute a snapshot when the apply button is clicked".
> Anyone?
> Thanks,
> Brian
>|||I've having the same symptoms.
- SQL Server Agent is running
- The tasks that are created in SQL are running successfully
- The reports don't show up in the history and the updates are not
reflected in the snapshot data in the report
Everything looks like it SHOULD be working. No errors in the event log.
Nothing of value I could find in the Execution log. Just no new data.
ARGH.
"Tibor Karaszi" wrote:
> Sorry for the obvious question, but is SQL Server Agent started?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "G" <brian.grant@.si-intl-kc.com> wrote in message news:O5way6JrEHA.3172@.TK2MSFTNGP10.phx.gbl...
> >
> > Does the scheduler for executing a snapshot just simply not work?
> >
> > Is there a known issue with this? I've tried everything, daily, weekly, on
> > and on...the only way i've ever gotten a snapshot to execute ever, is by
> > checking the "execute a snapshot when the apply button is clicked".
> >
> > Anyone?
> >
> > Thanks,
> >
> > Brian
> >
> >
>
>