简体   繁体   中英

SSRS - Report Website Error processing Dataset

After adding a T-SQL query-based dataset to a report and deploying it, the report stopped working because of the following error.

An error has occurred during report processing. (rsProcessingAborted) Query execution failed for dataset 'NewDataset'. (rsErrorExecutingCommand) For more information about this error navigate to the report server on the local server machine, or enable remote errors

Datasource : Cube + SQL DB Dataset: Cube + SQL DB

Table on the report: Most columns filled from Cube DB. Added one more column connected T-SQL DB.

Before adding T-SQL dataset, report was showing perfectly on the site. The SSRS previews report perfectly.

The report uses a shared dataset that connects to a SQL shared datasource.

Often, dataset queries will fail when deployed due to security problems. Ensure that the account that the SSRS reports run under have the appropriate security for all of the db objects used in the dataset query.

Find the data source in the Report Manager. Click the down arrow located on the right side of the data source and choose "Manage". In the properties, you can determine what account is used to connect to SQL.

On the SQL database, ensure that the account used for the data source has the security privileges required to access the database objects used in the query (maybe the tables referenced in the query, or the stored procedure, depending on what the source of your dataset is).

Try connecting to SSMS with the same account that the data source is using, and run the same query. The errors that you get during this process will help identify where security privileges are needed.

In my case with the same error message, the root of the issue is not from the security perspective, but from the database view related to the report. Here's how I found out:

  1. Run the same report from Report Builder: from Report Manager, click the report that produces error. You might have to provide additional parameters depending on your report, then click View Report
  2. You should now see the same error message. The content of the message is the same in the first sentence; but the second sentence on it will show in more detail the cause of the error. In my case I have a view that queries columns not existing (because I deleted) in the table. When I update the view, it works again with the report.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM