简体   繁体   中英

SSRS Data Driven Subscription Not Generating File

In SQL Server 2014 I have a data driven subscription that is executing successfully, but no file is generated. It is a Windows File Share subscription and the report has three parameters. I've tried removing all the parameters to see if it was an issue with that, but it still does not work. I've also verified the file path and the query the subscription is based is correct so don't think there is an issue there.

The subscription returns the message:

Processing: 0 processed of 281 total; 0 errors.

EDIT #1:

More information:

  • I'm trying to save the files to a shared drive on test computer.
  • I've given "full control" rights to the service for SQL Server Agent and SSRS to the folder.
  • I'm logged in as a user on a domain.

Images of steps followed:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

EDIT #2:

I'm getting the following errors from the log file located at "C:\Program Files\Microsoft SQL Server\MSRS12.MYINSTANCE\Reporting Services\LogFiles"

1) Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: AuthzInitializeContextFromSid: Win32 error: 1355, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;

2) Error occurred processing subscription XX: Failure writing file filename: The report server has encountered a configuration error.

3) Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The report server has encountered a configuration error. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.

You can check the Subscriptions table in the ReportServer database for more detail about the subscriptions. For more detail, you can refer to the How to monitor report subscriptions .

You can check the UserName column values the user have permissions and other details.

 SELECT *
FROM ReportServer.dbo.Subscriptions AS s
     JOIN
     ReportServer.dbo.Users AS us
     ON us.UserID = s.OwnerId;

At the same time you can check the ExecutionLog3 table RowCount column in order to figure out the subscribed report returned any rows.Therefore, you can find out more details about the issue of the report.

EDITED

I simulated your error in my SSRS and then handled the problem with the help of the following steps.

  • Checked the error log files of the SSRS and find out the find out the

"An impersonation error occurred using the security context of the current user"

error.

Did you check the log files or Report Manager for more info? If you haven't, check out ExecutionLog3 for more info about the execution of the report

https://docs.microsoft.com/en-us/sql/reporting-services/report-server/report-server-executionlog-and-the-executionlog3-view?view=sql-server-ver15

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