404 Repport not found on Angular Report viewer. Work in Postman.

0 Answers 25 Views
Report Parameters Report Viewer - Angular
Pierre
Top achievements
Rank 2
Iron
Iron
Pierre asked on 01 Dec 2021, 04:40 PM | edited on 01 Dec 2021, 05:28 PM

Hi, in my Angular 13 Projet I add the ReportViewer. Work well with the "online" Telerik REST service like with the CLI provided demo.

But on my .Net Core Rest service I got a 404 not found on :


 

If I use the clientId received by the viewer and try the same POST in Postman, I got no error and the response got Parameters [] (I test with Barcodes report that do not have anay parameters.

Why the viewer got a 404 Not found in the network tab?

In the viewer the error is:


Unable to get report parameters.
Report 'Barcodes%20Report.trbp' cannot be resolved.

 

EDIT:

Testing directly in the CLI Telerik Demo and I got the same error. Using the Telerik Demo and online REST Telerik service:

 

<tr-viewer #viewer1 
    [containerStyle]="viewerContainerStyle"
    [serviceUrl]="'https://demos.telerik.com/reporting/api/reports/'"
    [reportSource]="{
        report: 'Barcodes Report.trbp',
        parameters: {}
    }"
    [viewMode]="'INTERACTIVE'"
    [scaleMode]="'SPECIFIC'"
    [scale]="1.0"
    [ready]="ready"
    [viewerToolTipOpening]="viewerToolTipOpening"
    [enableAccessibility]="false">
</tr-viewer>

Neli
Telerik team
commented on 06 Dec 2021, 02:11 PM

Hi Pierre,

Generally, the message means that the report cannot be found in the folder it is been looked for or the name is wrong. I see that you set the report property to be equal to 'Barcodes Report.trbp'. Note that .trbp is an extension for the report book. If it is just a report, please, test changing the extension to .trdp or .trdx.

I hope this information will help you. Please, let me know if you have any updates.

No answers yet. Maybe you can help?

Tags
Report Parameters Report Viewer - Angular
Asked by
Pierre
Top achievements
Rank 2
Iron
Iron
Share this question
or