The error message you're encountering indicates an issue with the data source credentials for a report or shared dataset in SQL Server Reporting Services (SSRS). Here are steps to troubleshoot and resolve this issue:
- Check Data Source Credentials:
- Ensure that the data source credentials are stored in the report server database.
- Go to the report server, navigate to the data source, and verify that the credentials are correctly set up.
- Unattended Execution Account:
- If the data source is configured not to require credentials, make sure that the unattended execution account is specified.
- To configure the unattended execution account:
- Open SQL Server Reporting Services Configuration Manager.
- Go to the "Execution Account" section.
- Specify the credentials for the unattended execution account.
- Shared Data Sources:
- If using shared data sources, ensure that the shared data source is correctly configured with valid credentials.
- Navigate to the shared data source in the Report Manager and verify the connection settings.
- Subscription Settings:
- Verify the settings of the data-driven subscription to ensure that it is correctly configured to use the appropriate data source credentials.
- Ensure that the subscription has the necessary permissions to access the data source.
- Report Server Configuration:
- Check the report server configuration files (
rsreportserver.config
) for any incorrect settings related to data sources and credentials.
- Check the report server configuration files (
- Error Logs:
- Review the SSRS error logs for additional details about the error. The logs are usually located in the
\LogFiles
directory under the SSRS installation directory.
- Review the SSRS error logs for additional details about the error. The logs are usually located in the
Steps to Verify and Update Data Source Credentials:
- Navigate to Data Sources:
- Open SQL Server Reporting Services (SSRS) web portal.
- Go to the "Data Sources" folder.
- Edit Data Source:
- Click on the specific data source that the report is using.
- Select "Manage" from the drop-down menu.
- Verify Credentials:
- Go to the "Credentials" tab.
- Ensure that the "Credentials stored securely in the report server" option is selected.
- Enter valid credentials that have access to the data source.
- Save Changes:
- Save the changes and test the data source connection to ensure it is successful.
Configuring Unattended Execution Account:
- Open SSRS Configuration Manager:
- Open SQL Server Reporting Services Configuration Manager on the server.
- Go to Execution Account:
- Select the "Execution Account" tab.
- Set Up Account:
- Enter a valid Windows account that has permissions to access the necessary data sources.
- Apply the changes.
By following these steps, you should be able to resolve the InvalidDataSourceCredentialSettingException
and ensure that your data-driven subscription can run successfully. If you encounter further issues, please provide more details about the configuration and the steps you've already taken.