Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello fellow Data Nuts 😁
I decided to dip my toe in the mystical world of the PowerBI REST API today and while I am up and running I am facing an issue where I am getting an error when I am trying to use the "Update Report Content" API Call.
{
"error": {
"code": "PowerBIEntityNotFound",
"pbi.error": {
"code": "PowerBIEntityNotFound",
"parameters": {},
"details": [],
"exceptionCulprit": 1
}
}
}POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/UpdateReportContent{
"sourceReport": {
"sourceReportId": "{sourceReportId}",
"sourceWorkspaceId": "{sourceWorkspaceId}"
},
"sourceType": "ExistingReport"
}
I have a valid bearer token, and other API calls are working fine. I am copying the group and report guid's direct from the URL's in the service but still getting the error message above.
Also, i do have the app setup correctly with all azure app settings, definitely has the correct scope for the call.
Hoping somebody could help me troubleshoot this api call.
Thanks in advance,
David
Solved! Go to Solution.
I wanted to come back here with a clever reason why it was not working, but quite simply because I had made a very very simple rookie mistake. I had my report ID & workspace ID's in the wrong order in the body!
Lesson learned: Triple check your bloody code 🙂
Do you get the same error in the API sandbox?
Reports - Update Report Content In Group - REST API (Power BI Power BI REST APIs) | Microsoft Docs
@lbendlin Unfortunately yes I do. I've deleted report copies in the target workspace, recopied and attempted the report update api call again with the same result.
Then you have bigger issues. Maybe you don't have permission. What's the error in the sandbox?
I wanted to come back here with a clever reason why it was not working, but quite simply because I had made a very very simple rookie mistake. I had my report ID & workspace ID's in the wrong order in the body!
Lesson learned: Triple check your bloody code 🙂
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |