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
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
55 | |
40 | |
33 | |
27 | |
24 |