I want to connect to the a JSON or CSV file which is located in remote folder. When I gave the datasource as below:
I am getting below error.
Unable to open file flexmonster/\UC260413-TPL-AlexlexmonsterJournalEntiresJSON.json?435634736.
I am not sure why the flexmonsters component is being set as root folder. I think because that i am facing this issue.
But why the FM is looking in the component folder instead the folder
If I put the JournalEntiresJSON.json file in flexmonster folder then pivot is working fine but when I put it any other folder pivot is not loading data because the component folder name is prefixing before the given other folder name as above.
Can you please help me how to load a csv or json file form any other folder instead from only component folder.
Thank you for reaching out to us.
Please make sure that the componentFolder property is defined correctly.
For more information about the componentFolder please refer to our guide: https://www.flexmonster.com/api/new-flexmonster/
We would like to explain that the filename parameter can accept absolute paths, for example,
https://cdn.flexmonster.com/data/data.json, and relative paths.
Relative paths need to comply with the following rules:
Please let us know if this helps.
In my case the component folder is the default flexmonster/ folder. I am not using any component property explicitly.
But Still I am facing error loading the csv file from remote folder given.
I am getting the CORS issue. I have set enable CORS property to * for all the sites. But still I am facing the CORS origin issue.
I am trying to access the csv file from remote folder as below from my server.
filename: ‘//RemoteFolder/filename.csv’ },
I want to load the csv file form any remote location into pivot with the defalut component folder flexmonster/ given without any CORS issue.
Could you please help me over this.
Thank you for your reply.
1. We would like to confirm that the default
componentFolder value can be used, setting the
componentFolder property explicitly is not necessary.
2. We kindly suggest checking which errors are thrown in the browser’s dev console to get additional information about the problem.
Please share the error text in case any assistance is needed.
Waiting for your reply.