Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I'm receiving the following error when trying to update a dataflow with Imports API. Has anyone got this working?
{ "error": { "code": "PackageNotFoundError", "pbi.error": { "code": "PackageNotFoundError", "parameters": {}, "details": [] } } }
Reference documentation:
Steps to reproduce:
1. Export dataflow as json, cleanup partitions property
2. Create workspace, get workspace id
3. Upload dataflow (Ignore)
request
POST /v1.0/myorg/groups/f6..../imports?datasetDisplayName=model.json&nameConflict=Ignore HTTP/1.1 Host: api.powerbi.com Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW Authorization: Bearer ey... Content-Length: 229 ----WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name=""; filename="/C:/git/project/model.json" Content-Type: application/json (data) ----WebKitFormBoundary7MA4YWxkTrZu0gW
response
{"id":"e1..."}
4. Get final status (wait for import to finish)
{ "@odata.context": "http://wabi-north-europe-redirect.analysis.windows.net/v1.0/myorg/groups/.../$metadata#imports/$entity", "id": "...", "importState": "Succeeded", "createdDateTime": "2022-06-20T09:09:38.713Z", "updatedDateTime": "2022-06-20T09:09:38.713Z", "name": "model", "connectionType": "import", "source": "Upload", "datasets": [], "reports": [], "dataflows": [ { "objectId": "...", "name": "model", "users": "" } ] }
5. Upload dataflow (CreateOrOverwrite)
POST /v1.0/myorg/groups/f6..../imports?datasetDisplayName=model.json&nameConflict=CreateOrOverwrite HTTP/1.1 Host: api.powerbi.com Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW Authorization: Bearer ey... Content-Length: 229 ----WebKitFormBoundary7MA4YWxkTrZu0gW Content-Disposition: form-data; name=""; filename="/C:/git/project/model.json" Content-Type: application/json (data) ----WebKitFormBoundary7MA4YWxkTrZu0gW
6. Get status, 404 error
request
GET /v1.0/myorg/groups/f6.../imports/16... HTTP/1.1 Host: api.powerbi.com Authorization: Bearer ey...
response
{ "error": { "code": "PackageNotFoundError", "pbi.error": { "code": "PackageNotFoundError", "parameters": {}, "details": [] } } }
Thank you!
Hi @v-xiaoyan-msft ,
Thank you for the issue reference. I have opened a support ticket for this particular issue (404 error).
Regards,
Alex
Hi @alex_chiraples ,
We have found on the forum that users have asked similar questions in the past, and you can likewise seek the help of a more specialized engineer to help you solve the problem.
[Issue] Power BI REST API Import Dataflow CreateOrOverwrite Error
Best Regards,
Community Support Team _ Caitlyn
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
It has already been several months. But there is now a bug reported to the PG.
The title of the bug is "REST API - imports with parameter CreateOrOverwrite throws PackagenotfoundError" and it was created on 5th Sept 2022.
Here is the Bug ID: 875909
Maybe the PG will fix this soon. Please note that I wasn't the first to report the bug . I contacted CSS/PG in December 2022, and they said there was already a bug number for this problem.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
20 | |
18 | |
18 | |
9 |