Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Uploading dataset to power bi premium workspace using xmla endpoints

I tried uploading .json file datset using PostImportWithFileInGroup Power Bi RestAPI but am getting error as Bad request.

How to upload dataset(.json file) from specified location (c:\testing\test.json) to power bi premium workspace using xmla endpoint?

 

 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous 

    Please check whether you register an app correctly. Make sure the app is not a service principal. Post import is not supported for dataflows with service principal.

    You will need to assign Dataset.ReadWrite.All in API Permission in your app. You can have a test from this link.

    For reference: Import dataflow model.json example

     

    Best Regards,
    Rico Zhou

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.