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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
JoRobs
New Member

REST API UpdateReportContent returns 500 (Internal Server Error) for certain reports

At my org we have been using the UpdateReportContent REST API to deploy reports into the service while preserving report IDs. This has been working well until recently, we have encountered some reports that consitently return a 500 (Internal Server Error) when we try to update their content. Based on testing it seems like the error is caused by some difference between the target report and the source report, the same target can be updated by some source reports but not others, with no indication why. 

 

The scripts that make the call are written in powershell, the full error looks like:

 

Exception:
System.AggregateException: One or more errors occurred. ---> System.Net.Http.HttpRequestException: {
"code": "UnknownError",
"pbi.error": {
"code": "UnknownError",
"parameters": {},
"details": []
}
} ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 500 (Internal Server Error).
 
Has anybody else encountered this?
 
Thanks,
Josh
1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @JoRobs ,

 

Which of the REST API are you using? 

Update Report Content In Group or Update Report Content? Please clarify.

If you are using  Update Report Content then you can only updates the content of the specified report from My workspace with the content of a specified source report.

The Update Report Content In Group API updates the content of the specified report from the specified workspace with the content of a specified source report.

 

Best Regards,

Jianbo Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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