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: The information on this website is provided without warranty and any content is merely the opinion of the author. Please try to test in development environments prior to adapting them to your production environments. The articles are written in good faith and, at the time of print, are working examples used 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 - Valid till 8 May 2022 3QnhmaBX7LQSRsC9hh6Je9rGQKEGNQNfPb
© 2021 Joel Lipman .com. All Rights Reserved.