microsoft / PowerBI-Tools-For-Capacities

Repo for tools and utilities related to Power BI Capacities (Premium and Embedded)
MIT License
148 stars 99 forks source link

Expected a JSON object #38

Open dairecunningham opened 5 months ago

dairecunningham commented 5 months ago

Hi there,

anyone else getting an error at JSON.parse(reportParameters).reportUrl in the HTML file? If I look at the PBIReport.json file in VSCode is looks to be malformed:

JsonError

This is the sample in the screenshot but my file has all values filled.

Thanks in advance! Daire

furmangg commented 5 months ago

That file is actually a JavaScript file. The file extension is a misnomer.

If you can’t figure out how to make your file parse then feel free to share here for sanity check.

dairecunningham commented 5 months ago

That file is actually a JavaScript file. The file extension is a misnomer.

I’d you can’t figure out how to make your file parse then feel free to share here for sanity check.

Yes, I noticed this actually. It seems to be an issue to do with specifying the filter parameters. I'm seeing issues if they are strings, have spaces or I want to omit altogether. But I can work around these thanks