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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
alex_chiraples
Frequent Visitor

Imports API - CreateOrOverwrite dataflow

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!

4 REPLIES 4
alex_chiraples
Frequent Visitor

Hi @Anonymous ,

 

Thank you for the issue reference. I have opened a support ticket for this particular issue (404 error). 

 

Regards,

Alex

@alex_chiraples 
Any news?  I'm experiencing the same thing.

Anonymous
Not applicable

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.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors