Print

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