Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Subscription Error Expand / Collapse
Author
Message
Posted Tuesday, November 29, 2005 9:12 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Wednesday, June 20, 2012 5:02 AM
Points: 530, Visits: 945

I have a bunch of reports some of which I can create a new subscription for and some of which give me the following error message:

"Subscriptions cannot be created because the credentials used to run the report are not stored, the report is using user-defined parameter values, or if a linked report, the link is no longer valid."

Well, ...

- they all either have credentials saved in the report server or they use the same shared data source

- some have parameters and some don't, but this doesn't distinguish between those that work and those that don't; adding a parameter to a report which I can create a subscription for doesn't affect it

- none are linked reports.

Any ideas? None are cached or snapshots.

Thanks.

Post #240382
Posted Tuesday, November 29, 2005 9:55 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Wednesday, June 20, 2012 5:02 AM
Points: 530, Visits: 945
Found the answer on www.sqlreportingservices.net. If you use User!UserID in the report, you can't create a subscription for it. But what's the workaround?
Post #240398
Posted Tuesday, November 29, 2005 4:27 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: Moderators
Last Login: Today @ 5:53 PM
Points: 1,816, Visits: 3,464

Depends on what you're trying to work around...

You can't use the UserID as it's the 'Unatteneded User' who will always be executing this report. 

If you're trying to use the UserId as a parameter value in a query, then just add it as a standard parameter.  Then when the user schedules the report, they accept the defaults for all other parms but enter their username for that one.

 

 




Steve.
Post #240559
Posted Wednesday, November 30, 2005 1:47 AM


Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Wednesday, June 20, 2012 5:02 AM
Points: 530, Visits: 945
Yes, now I think about it, the userid isn't going to be important anyway. Still, there's nowhere in any documentation I've seen that tells you about this hidden criterion for generating subscriptions.
Post #240624
Posted Wednesday, November 30, 2005 3:54 PM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: Moderators
Last Login: Today @ 5:53 PM
Points: 1,816, Visits: 3,464

I agree, maybe they think that the statement 'the report is using user-defined parameter values' covers this.  In a way, it is a user-defined variable, they just don't know that they're defining it.

 




Steve.
Post #240957
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse