Completed
Last Updated: 19 Dec 2024 16:04 by ADMIN
Release 2025 Q1
Sandy
Created on: 18 Nov 2024 19:00
Type: Bug Report
1
ReportsControllerBase CreateInstance returns an incorrectly formated JSON payload

The ReportsControllerBase is returning a JSON payload of { "InstanceId": "xxxx" } instead of { "instanceId": "xxxx" } that the Html5 ReportViewer is expecting. I believe the CreateInstance method should be using CreateJsonResponse instead of CreateResponse. I overrode the ReportsControllerBase.CreateInstance like the following to get it working again:


response = base.CreateInstance(clientId, reportSource);

// This is to work around a bug in telerik reporting.
BusinessLogicResponse v = BusinessLogicResponse.CreateInstance(HttpStatusCode.Created, ((ObjectResult)response).Value);
response = base.CreateJsonResponse(v);

1 comment
ADMIN
Momchil
Posted on: 25 Nov 2024 13:43

Hi Sandy,

Thank you for reporting this and sharing your workaround!

Indeed, this is related to a known issue introduced in the latest release which is why I have marked this bug report as approved.

We intend to fix the issue for the next release but until then you can either use the workaround you shared or the one from the following Knowledge Base article.

Fix "No report instance" Console Error when using HTML5 Report Viewer - Telerik Reporting

I hope this helps.

Best Regards,
Momchil
Progress Telerik

Stay tuned by visiting our roadmap and feedback portal pages, enjoy a smooth take-off with our Getting Started resources, or visit the free self-paced technical training at https://learn.telerik.com/.