Problem creating SSRS report subscriptions

What?
A quick article on if you are trying to create a new subscription to a SQL Server Reporting Server (SSRS) report and you are getting a warning message similar to the following:
copyraw
Message from webpage

Subscriptions cannot be created because the credentials used to run the report are not stored, or if a linked report, the link is no longer valid.
  1.  Message from webpage 
  2.   
  3.  Subscriptions cannot be created because the credentials used to run the report are not stored, or if a linked report, the link is no longer valid. 

Why?
The problem happens because of the data source used in the report. For static data source connections, this is straightforward but in our case, we have a report which points to different servers based on a report parameter.

How?
There are various types of data sources used in SSRS so I'm going to try and cover the ones I have used previously and what we needed to get them working.
  1. Custom DataSource
    1. Upload the report to the ReportServer.
    2. Hover the mouse cursor over it and click on the dropdown arrow to its right
    3. Select "Manage" in the dropdown menu
    4. Select "Data Sources" in the left menu
    5. Specify a "custom data source" and test the connection.
    6. Ensure unattended system account scheduled to run and email the report can access the datasource (ask a DBA if you're unsure).


  2. Shared DataSource
    1. Upload the report to the ReportServer.
    2. Hover the mouse cursor over it and click on the dropdown arrow to its right
    3. Select "Manage" in the dropdown menu
    4. Select "Data Sources" in the left menu
    5. Specify a "shared data source" and browse to it to ensure it exists.
    6. Ensure unattended system account scheduled to run and email the report can access the datasource (ask a DBA if you're unsure).


  3. Parameter-Driven DataSource
    1. In the folder where you put your Data Sources, click on the button "New Data Source"
    2. Specify the details, especially the connection string (which the system account can use).
    3. Set "Connect Using" to "Credentials supplied by the user running the report".
    4. Browse to your report or upload it if it does not exist.
    5. Hover the mouse cursor over it and click on the dropdown arrow to its right
    6. Select "Manage" in the dropdown menu
    7. Select "Data Sources" in the left menu
    8. Specify a "shared data source" and browse to the one you just created and click on "OK".
    9. Click on "Apply" (just to be sure).
    10. Ensure unattended system account scheduled to run and email the report can access the datasources for each parameter-driven connection (ask a DBA if you're unsure).


Category: SQL Server Reporting Services :: Article: 533

Credit where Credit is Due:


Feel free to copy, redistribute and share this information. All that we ask is that you attribute credit and possibly even a link back to this website as it really helps in our search engine rankings.

Disclaimer: Please note that the information provided on this website is intended for informational purposes only and does not represent a warranty. The opinions expressed are those of the author only. We recommend testing any solutions in a development environment before implementing them in production. The articles are based on our good faith efforts and were current at the time of writing, reflecting our practical experience in a commercial setting.

Thank you for visiting and, as always, we hope this website was of some use to you!

Kind Regards,

Joel Lipman
www.joellipman.com

Related Articles

Joes Revolver Map

Accreditation

Badge - Certified Zoho Creator Associate
Badge - Certified Zoho Creator Associate

Donate & Support

If you like my content, and would like to support this sharing site, feel free to donate using a method below:

Paypal:
Donate to Joel Lipman via PayPal

Bitcoin:
Donate to Joel Lipman with Bitcoin bc1qf6elrdxc968h0k673l2djc9wrpazhqtxw8qqp4

Ethereum:
Donate to Joel Lipman with Ethereum 0xb038962F3809b425D661EF5D22294Cf45E02FebF
© 2024 Joel Lipman .com. All Rights Reserved.