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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
DavideBono97
Frequent Visitor

Publish report with Api

HI
I have two tenants, one for Development and one for Production
We develop the reports from PowerBI Desktop and publish the pbix by publishing directly from PowerBI Desktop

To publish the content on both tenants I have to switch accounts every time and data connection

 

I wanted to avoid doing this by trying to use some PowerBI API to publish the pbix automatically on both tenants
Since the data connection is saved inside the pbix, through the import API I can only upload to my workspace on one tenant and not on the other
Through the Import groups/xxx/imports?datasetDisplayName=xxx api I get the following error : {"error":{"code":"PowerBIModelNotFoundException","pbi.error":{"code":"PowerBIModelNotFoundException"," parameters":{},"details":[],"exceptionCulprit":1}}}

How can I tell it to ignore the connection? I am only interested in importing the report and then changing the connection later

Thanks in advance

3 REPLIES 3
nunoc1
New Member

Hi @DavideBono97,

 

I'm having the same issue, did you get any solution on this?

 

Best regards

Hi

No, I haven't found any solution unfortunately

Anonymous
Not applicable

Hi @DavideBono97 ,

So far, to my knowledge, there is no parameters to achieve it.

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.