Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Gourd_J
Helper I
Helper I

error running a paginated report with subreports in the on-premise reportViewer.aspx control

Power BI Report server version: Version 1.3.6816.37243 (August 2018)

 

I have a paginated SSRS report that reads the report server database's catalog in order to list reports available to be run. 

When a user clicks a row the action for the textbox uses this piece of code to show the report in the Catalog.Path in the server's reportViewer:

=Globals!ReportServerUrl + "/ReportServer/Pages/ReportViewer.aspx?%20" + Fields!Path.Value + "&rs:Command=Render"

This works great for all standard paginated reports. But, I just created one with a subreport and it is throwing the following error:

e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: , Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: An unexpected error occurred in Report Processing. ---> System.UriFormatException: Invalid URI: A Dos path must be rooted, for example, 'c:\'.

I can run the report by directly clicking it on the report server, but when it is run through the reportViewer.aspx control it fails.

 

Any ideas?

 

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

Why do you have the %20 in front of the path? I would try removing that as it seems like the error is complaining about the path being incorrect and I can't think why you would need this. 

View solution in original post

2 REPLIES 2
d_gosbell
Super User
Super User

Why do you have the %20 in front of the path? I would try removing that as it seems like the error is complaining about the path being incorrect and I can't think why you would need this. 

That fixed it!
So weird that it only affected the report with a subreports, I guess it blew up the path of the subreports?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.