This is a migrated thread and some comments may be shown as answers.

Unable to get report parameters Error for Telerik Reporting

3 Answers 2004 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Veteran
asked on 12 Jan 2021, 09:18 AM

hi

I tried to use angular report viewer + dotnet core 3.1 to represent my report in Linux. The sample I refer to is
AspNetCore3 AngularReportViewer.zip ,

angular report viewer:11.20.1021

Telerik Reporting:14.2.20.1021

But I had two problems,
1,Set for .trdp definition

// Set for .trdp definition
this.viewer.setReportSource({
  report: 'Dashboard.trdp'
});

Error:Unable to get report parameters. An error has occurred. Type: Telerik.Reporting.ReportSerialization.V4_0.ReportSerializable`1[Telerik.Reporting.Report]
2,Set for Core Library definition

// Set for Core Library definition
this.viewer.setReportSource({
  report: 'ReportLibraryCore.SampleReport, ReportLibraryCore, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
 });

Error:Unable to get report parameters. An error has occurred. Invalid report type

Please refer to the attachment for details.

I want to know what caused my mistake and what I should do.
thank you.

3 Answers, 1 is accepted

Sort by
0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 14 Jan 2021, 05:57 PM

Hi 平,

That error is usually quite general. However, from the browser console errors, it appears that the Reporting REST Service is unreachable. I recommend using the Get Available Document Formats route to ensure the Reporting REST Service is up and running. Let me go over the details for this below. 

Available Document Formats

The /api/reports/formats route is a public route that can be used to test in the browser or with an API testing tool to verify that the Reporting REST Service is working properly. If it is a JSON object of the available formats will be returned. See the following screenshot for reference.

Wrapping Up

Unfortunately, I could not access the previous link to the demo. Were there any changes to the demo from the previous ticket? If so, can you provide them or provide a new link to the updated demo?

It also is possible to use Fiddler Everywhere on a Linux machine to listen to web requests. To do this, install Fiddler Everywhere, review the Session List documentation, export the sessions and attach to this thread. If confidentiality is a concern we can convert this to a Support Ticket which will remove it from the public forum.

Please let me know if you have any additional questions. Thank you and I look forward to your reply.

Regards,


Eric R | Senior Technical Support Engineer
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Top achievements
Rank 1
Veteran
answered on 15 Jan 2021, 08:16 AM

Hi Eric R,

Thank you for your help.
My reporting rest service can work normally. I can get the return value by visiting /API/reports/formats.
About demo, because the report library project can't be compiled in my Linux system, I have removed the reference of this project, and nothing else has changed.
I got the following error message during the program running, which is about
Telerik.Reporting.Services.Engine.HttpError 
So what kind of mistake is this and how can I solve it?

info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 OPTIONS http://localhost:5000/api/reports/clients/a60048d993a/parameters 
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request starting HTTP/1.1 OPTIONS http://localhost:5000/api/reports/clients/a60048d993a/parameters 
info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[4]
      CORS policy execution successful.
Microsoft.AspNetCore.Cors.Infrastructure.CorsService: Information: CORS policy execution successful.
info: Microsoft.AspNetCore.Hosting.Diagnostics[2]
      Request finished in 9.4258ms 204
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request finished in 9.4258ms 204
info: Microsoft.AspNetCore.Hosting.Diagnostics[1]
      Request starting HTTP/1.1 POST http://localhost:5000/api/reports/clients/a60048d993a/parameters application/json; charset=UTF-8 48
Microsoft.AspNetCore.Hosting.Diagnostics: Information: Request starting HTTP/1.1 POST http://localhost:5000/api/reports/clients/a60048d993a/parameters application/json; charset=UTF-8 48
info: Microsoft.AspNetCore.Cors.Infrastructure.CorsService[4]
      CORS policy execution successful.
Microsoft.AspNetCore.Cors.Infrastructure.CorsService: Information: CORS policy execution successful.
Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker: Information: Route matched with {action = "GetParameters", controller = "Reports"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult GetParameters(System.String, Telerik.Reporting.Services.AspNetCore.ClientReportSource) on controller Azbil.Tx.WebApi.Controllers.ReportsController (WebApi).
info: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3]
      Route matched with {action = "GetParameters", controller = "Reports"}. Executing controller action with signature Microsoft.AspNetCore.Mvc.IActionResult GetParameters(System.String, Telerik.Reporting.Services.AspNetCore.ClientReportSource) on controller Azbil.Tx.WebApi.Controllers.ReportsController (WebApi).
Reports::
{"Tim":"2021-01-15 15:00:44.271", "lvl":"INFO ", "cat":"oper","flg":"start","fnc":"ReportsController.GetParameters","prm":{"clientID":"a60048d993a","reportSource":{"report":"Dashboard.trdp","parameterValues":{}}}}
{"Tim":"2021-01-15 15:00:44.282", "lvl":"INFO ", "cat":"oper","flg":"end","fnc":"ReportsController.GetParameters","eTm":10}
{"Tim":"2021-01-15 15:00:44.283", "lvl":"ERROR", "cat":"misc","uId":"","fnc":"ReportsController.GetParameters"}
info: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1]
      Executing ObjectResult, writing value of type 'Telerik.Reporting.Services.Engine.HttpError'.
Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor: Information: Executing ObjectResult, writing value of type 'Telerik.Reporting.Services.Engine.HttpError'.
0
Eric R | Senior Technical Support Engineer
Telerik team
answered on 19 Jan 2021, 05:59 PM

Hi 平,

Thank you for providing the additional information. From it, I took our previous sample, remove the .NET Framework Report Library, created an Ubuntu VM and was unable to reproduce the result. See the following screenshot to see it running in the browser. 

As a result, I think it would be best to move this to a support ticket and share your existing project. I have a created a new ticket for you and it can be found in your Telerik Account

Wrapping Up

I will move forward with closing this ticket and we can continue our troubleshooting there in a secure manner.

Please provide the requested information in that ticket. Thank you again for using the Telerik Reporting Forums.

Regards,


Eric R | Senior Technical Support Engineer
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Prasanth
Top achievements
Rank 1
commented on 07 Mar 2022, 09:52 AM

Hi Support,

Can I know, what kind of solution was given to this error as mentioned. Facing same error in same environment.

Regards

Eric R | Senior Technical Support Engineer
Telerik team
commented on 07 Mar 2022, 01:48 PM

The error can derive from a number of issues and there are several potential solutions. The best option is to create a support ticket and provide the Reporting REST Service, a sample Report definition with sample data and details about the environment that the application is running.

For simplicity, I created a support ticket for you. The ticket can be found in Telerik Account portal at 1556538. Note that I will be immediately notified once the requested information has been provided.

WoorimartDEV
Top achievements
Rank 1
Iron
Iron
commented on 05 Aug 2022, 02:30 AM

Hi Support.

I faced same issue on that.

Message like

Type: Telerik.Reporting.ReportSerialization.Current.ReportSerializable`1[Telerik.Reporting.Report]

Is there any solution of it?

Facing error in mac OS m1

Neli
Telerik team
commented on 08 Aug 2022, 11:01 AM

Hi Doyeong,

I noticed that the same topic was discussed in a few other threads. I would recommend keeping our communication in thread #1574974

Ketankumar
Top achievements
Rank 1
commented on 05 Jun 2024, 05:21 AM | edited

facing same in MAC

@Eric why dont you share your sample solution created.
Todor
Telerik team
commented on 07 Jun 2024, 11:53 AM

Hello Ketankumar,

Eric's example may be downloaded from the thread How to user Telerik Reporting in Linux environment? Note that it is outdated and targets a framework that is no longer officially supported.

Can you elaborate on the environment and the Telerik.Reporting version that you use? Note that with our latest versions, we rely on the Skia graphics engine for rendering on non-Windows platforms - processing Element.

You may open a support ticket and share more details on the problem. This will guarantee faster responses as well.

 

Tags
General Discussions
Asked by
Top achievements
Rank 1
Veteran
Answers by
Eric R | Senior Technical Support Engineer
Telerik team
Top achievements
Rank 1
Veteran
Share this question
or