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

Web Report Designer Datasource

1 Answer 328 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Matthew
Top achievements
Rank 1
Matthew asked on 13 Nov 2020, 02:20 PM

Hi, so glad to have found the web designer - thanks. I just used VS template to add it to a demo project and it worked well (apart from web.system import missing). On running the demo I tried to add a CSV Datasource and get this error:

    Could not save resource 'BOOKED.csv'.
    An error occurred while loading the data schema for "csvDataSource1": Invalid URI: The URI is empty.

Is there a quick config change needed in the project to allow uploads??

Also I tried to find documentation about the web designer and didn't find much beyond one page.  Do you have details on how to (programmatically/config) create an empty report and add 4-5 default datasources so the user has something to start with?

Thanks, Matt

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Mads
Telerik team
answered on 18 Nov 2020, 10:43 AM

Hi, Matt

I am glad to hear you enjoy the Web Designer and sorry to hear about the issue.

I have spent some time investigating, but have not been able to reproduce the error message on my system.

You mentioned you have used the demo projects and one of these projects, the CSharp.AspNetCoreDemo has the WebReportDesigner already built-in. My suggestion would be to try running this project and see if the same error appears if you try uploading a CSV file here. This project is a .NET Core project, so if you are running a .NET Framework project this will not be directly applicable.

If you are working in Core, this project runs and you are able to add a CSV Datasource without errors, you could try to compare the project setup with your project to see if you have any differences. Also make sure the ResourceStorage is setup correctly inside Startup.cs > ConfigureServices > IReportDesignerServiceConfiguration. In addition, I don't know how complex and big the BOOKED.csv file is, but consider trying creating a small and simple testfile to upload.

If you are you using .NET Framework, there is currently a bug which causes issues with JSON and CSV datasources in the WebDesigner. Here is a link to a bug report about this issue. Though the title and description of the issue seem different, after investigating the cause, it appears to have the same root-cause. You can follow the report linked above to receive notifications about updates.

If the problem still occurs or you run into any other issues, let me know and we can continue troubleshooting this. Including a few details about your project like whether its Core or Framework, version of Telerik framework and other information could help us investigate more accurately.  

 

To your other question. The documentation for the Web Report Designer is not very detailed, but we are working on expanding it.

The datasources are part of the Reports definition, so technically you need a report to have available datasources. There are different approaches to how you could go about programmatically create reports and you could look into creating a custom Report Definition Storage so you could choose how reports are defined and resolved.

Other than that we, unfortunately, do not have much more documentation to help you with the case. Take a look at the link above and do not hesitate to contact us if other questions come up.

Regards, Mads 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/.

Tags
General Discussions
Asked by
Matthew
Top achievements
Rank 1
Answers by
Mads
Telerik team
Share this question
or