The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello!
I'm attempting to import a .pbix using the REST API referencing the file in OneDrive for Business as described in documentation here. I am receiving an undefined 400 Bad Request error (no message) and am looking for guidance. Can't find any examples for this method and I've tried using both Postman and Flow with the same results.
From Postman the request looks like.
POST /v1.0/myorg/imports?datasetDisplayName=TestReport HTTP/1.1
Host: api.powerbi.com
Content-Type: application/json
Authorization: Bearer <sanitized>
cache-control: no-cache
Postman-Token: 84b78aaf-8baf-45db-89f7-d9306b81d1dc
{
"connectionType" : "import",
"filePath" : "/pbix/BAL-Report-15-VaR-Waterfall.pbix",
"fileURL" : "https://fireappsoutlook-my.sharepoint.com/:u:/g/personal/<sanitized>/EVZgW1sjVaNAlPUGop0q<sanitized>..."
}------WebKitFormBoundary7MA4YWxkTrZu0gW--
With the following response:
{
"Message": ""
}
Is this a bug or is there a problem with the format? Can someone provide a working example?
Thanks in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.