Subscription Error

  • 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.

  • Found the answer on http://www.sqlreportingservices.net. If you use User!UserID in the report, you can't create a subscription for it. But what's the workaround?

  • 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.

  • 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.

  • 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.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply