Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

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 1
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.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.