microsoft / powerbi-visuals-drilldown-choropleth

powerbi-visuals-drilldown-choropleth
Other
31 stars 23 forks source link

pbiviz start - errors #29

Open SteveJamesBMDC opened 3 years ago

SteveJamesBMDC commented 3 years ago

Hi, I'm struggling to get this visual working in PBI. I've got good topojson files that I use in the preview shape map visual but keep getting 'Invalid json' error in Desktop.

I've tried downloading the source files with a view to investigate but I can't start it.

Errors..... error Could not find source file: '.api/v1.7.0/PowerBI-visuals.d.ts'. error undefined error ENOENT: no such file or directory, open 'C:\Users\me\Documents\Power BI custom visuals\powerbi-visuals-drilldown-choropleth-master.tmp\build\visual.js.map'

Thanks

helen508light commented 3 years ago

@SteveJamesBMDC could you please share this file(or similar file with the same issue) and write step by step instruction how to reprodice it?

SteveJamesBMDC commented 3 years ago

I believe the issue is because I have v3+ version of the API installed on my machine but this visual was written in an earlier version. I can't find instructions on how to upgrade a visual on an old API version.

The issue I was experiencing getting the visual to work in PBI was due to CORS and authentication. Although they were on the same domain I needed to enable CORS on the server providing the TopoJSON. Also the server required authentication but the request from PBI was anonymous. Once CORS enabled and the TopoJSON moved to an area allowing anonymous requests the visual worked as expected.