Page 1 of 1

RenderAsync does not fetch data from OData datasource

Posted: Mon Aug 23, 2021 7:34 pm
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.

Re: RenderAsync does not fetch data from OData datasource

Posted: Tue Aug 24, 2021 10:10 am
by opflucker

Re: RenderAsync does not fetch data from OData datasource

Posted: Tue Aug 24, 2021 9:24 pm
by Lech Kulikowski
Hello,

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

Thank you.

Re: RenderAsync does not fetch data from OData datasource

Posted: Thu Aug 26, 2021 8:39 am
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

Re: RenderAsync does not fetch data from OData datasource

Posted: Tue Aug 31, 2021 10:17 am
by opflucker
Any feedback?

Re: RenderAsync does not fetch data from OData datasource

Posted: Wed Sep 01, 2021 7:37 am
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.

Re: RenderAsync does not fetch data from OData datasource

Posted: Wed Sep 01, 2021 11:36 am
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?

Re: RenderAsync does not fetch data from OData datasource

Posted: Wed Sep 01, 2021 3:11 pm
by Lech Kulikowski
Hello,

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

Thank you.

Re: RenderAsync does not fetch data from OData datasource

Posted: Thu Sep 02, 2021 7:18 am
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.

Re: RenderAsync does not fetch data from OData datasource

Posted: Thu Sep 02, 2021 7:37 am
by Lech Kulikowski
Hello,

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

Thank you.