RenderAsync does not fetch data from OData datasource

Stimulsoft Reports.NET discussion
Post Reply
opflucker
Posts: 7
Joined: Mon Aug 23, 2021 5:21 pm

RenderAsync does not fetch data from OData datasource

Post by opflucker »

I have a report template (an mrt file) using an OData datasource and I am trying to render and export it to pdf in Asp.NET Core. The pdf is generated but without data, only headers, labels and other design elements. I noticed that the OData is never called during RenderAsync method call. Because maybe there are an error in my code, I tried an example you provide for rendering and exporting from a C# console program and I had the same result. Could you give me a valid example for this use case? Thanks.
opflucker
Posts: 7
Joined: Mon Aug 23, 2021 5:21 pm

Re: RenderAsync does not fetch data from OData datasource

Post by opflucker »

Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: RenderAsync does not fetch data from OData datasource

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue.
Please send us a sample project that reproduces the issue for analysis.

Thank you.
Attachments
Screenshot 2021-08-24 232344.png
Screenshot 2021-08-24 232344.png (302.18 KiB) Viewed 1615 times
opflucker
Posts: 7
Joined: Mon Aug 23, 2021 5:21 pm

Re: RenderAsync does not fetch data from OData datasource

Post by opflucker »

Thanks for your soon response. The image you shared was very useful. My error was put an slash ("/") at the end of the url to the OData API. Rendering fails with "https://localhost:44393/odata/" and works fine with "https://localhost:44393/odata". Method StiReport.Render (or StiReport.RenderAsync) fails when fetching data if the url has not the expected format without throwing and exception or writing a message in a log output. Is there any way to enable log messages in case of this kind of errors? Thanks. I tried what you suggest here "viewtopic.php?t=58576" but it only writes this in the log file, even when rendering fails:

2021:08:26, 09:49: StiReport: Loading report
2021:08:26, 09:49: StiReport: Rendering report
2021:08:26, 09:49: StiReport: Exporting rendered report
2021:08:26, 09:49: StiPdfExportService: Export report to Pdf format
opflucker
Posts: 7
Joined: Mon Aug 23, 2021 5:21 pm

Re: RenderAsync does not fetch data from OData datasource

Post by opflucker »

Any feedback?
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: RenderAsync does not fetch data from OData datasource

Post by Lech Kulikowski »

Hello,

Unfortunately, there is no possibility to log in the JS version. You can check it only in the debugging.

Thank you.
opflucker
Posts: 7
Joined: Mon Aug 23, 2021 5:21 pm

Re: RenderAsync does not fetch data from OData datasource

Post by opflucker »

Hello,
My question is about .NET version, not JS version. I can't see errors (like the one I commented) in any way (debugger window, console, log file, exceptions, anything). Is there a way to see errors?
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: RenderAsync does not fetch data from OData datasource

Post by Lech Kulikowski »

Hello,

Please send us a sample project that reproduces the issue for analysis.

Thank you.
opflucker
Posts: 7
Joined: Mon Aug 23, 2021 5:21 pm

Re: RenderAsync does not fetch data from OData datasource

Post by opflucker »

Hello,
Yours is clearly an automatic reply. I have not an issue. We have paying a very expensive license with you and need clear feedback. Please, give us a proper response to the question.
Thanks.
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: RenderAsync does not fetch data from OData datasource

Post by Lech Kulikowski »

Hello,

Please send us your request with detailed description on support@stimulsoft.com.

Thank you.
Post Reply