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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

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 @Anonymous ,

 

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.