The issue you are experiencing with SSRS reports throwing a "Credentials have not been supplied for a data source used by the report" error after a period of idle time is likely related to the authentication handling in SSRS. When a report is initially run, it may have valid credentials, but after a period of inactivity, those credentials may no longer be valid or may not be retained for subsequent actions like pagination, printing, or downloading.
To resolve this issue, you can consider the following options:
- Use Stored Credentials: Ensure that the data source for your report is configured to use stored credentials instead of relying on Windows authentication. This can help maintain the necessary credentials for the duration of the report session.
- Configure Unattended Execution Account: If your report server is configured to use an unattended execution account, ensure that it is set up correctly. This allows the server to run reports without needing user credentials every time.
- Modify Data Source Settings: Check the data source settings in the Report Manager. Ensure that the connection string does not have
Integrated Security=True, as this can lead to issues when the report is re-executed after being idle. - Session Timeout Settings: Review the session timeout settings in your CRM application and SSRS to ensure that they are set appropriately to prevent session expiration during idle times.
By implementing these changes, you should be able to mitigate the credential error when users attempt to interact with the report after a period of inactivity.
References: