Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Problems importing PBIX by means of REST APIs

Disclaimer: I'm very new to Power BI and PowerShell!   I have been trying to import a report .pbix file to a workspace, by following the very detailed tutorial given here by Sirui Sun. To do so, I'...
  • Anonymous's avatar
    Anonymous
    8 years ago

    I cracked it by finally figuring out where I had to look on this board, also taking my inspiration from here. As some of you might know by now, the problem was the Connections file in the pbix zip archive that had to be altered, so that it would containsinformation about the dataset that the report is supposed to be connected to.

     

    Looking into the structure of the connections file, it is nothing more than a hashtable converted to JSON, and if one wishes, the connection can be easily modified by renaming the pbix file to a zip file, unzipping, rewriting the connections file, zipping and renaming again.