RenderReport method give error: Data at the root level is invalid. Line 1, position 1.'

0 Answers 179 Views
Rendering Report Book Report Designer - Web Report Parameters
Unica
Top achievements
Rank 1
Unica asked on 11 Sep 2021, 11:19 AM

Hello, 

I am getting this error: "Data at the root level is invalid. Line 1, position 1.'", when I try to Render the report. this is my code.

var uriReportSource = new UriReportSource();
 uriReportSource.Uri = @"D:\Projects\folderName\folderName\folderName\folderName\Reports\reportName.trdp";

var deviceInfo = new Hashtable();

ReportProcessor reportProcessor = new ReportProcessor();

RenderingResult result = reportProcessor.RenderReport("PDF", uriReportSource, deviceInfo); - here I am getting the error.

Thank you :)

 

Eric R | Senior Technical Support Engineer
Telerik team
commented on 15 Sep 2021, 01:43 PM

Without seeing the problematic report definition it is not possible to understand the source of the error.

This is because the error is usually accompanied by additional information indicating the report definition is not valid.

To further troubleshoot this, please provide the report definition for review. Thank you.

No answers yet. Maybe you can help?

Tags
Rendering Report Book Report Designer - Web Report Parameters
Asked by
Unica
Top achievements
Rank 1
Share this question
or