Improve error message for Power BI API export to file method
This is a small feature request for better error messages from the Power BI API. Specifically I am hoping for an improvement in this API call:
- https://learn.microsoft.com/en-us/power-bi/developer/embedded/export-to
- In NuGet package Microsoft.PowerBI.Api, this is PowerBIClient.Reports.ExportToFileInGroup
If I call this method and give it a list of pages, and if even one of the pages has a bad PageName (Microsoft.PowerBI.Api.Models.ExportReportPage.PageName) (bad simply in that the PageName doesn't exist in the report), I get an inner exception with message "Operation returned an invalid status code 'BadRequest'". "BadRequest" makes it sound like I've sent malformed JSON or something, whereas the syntax is perfect and one of the page identifiers isn't in the report. The error message should instead say something like "PageName not found in report."
This has been a pain point for me. I have a fully functional process (to export PNG assets from a report) can break if when company's Power BI report developers release what they think is an inconsequential change that alters a report identifier. That's not great, but it becomes worse when the API error message doesn't help identify the cause of the problem.
Recent ideas
Semantic model connection bindings should be in source control (Git)
Semantic model data source connection bindings should be source controlled. A semantic model can contain multiple data source references, each of which can be mapped to a separate Fabric data connec...frithjof_v7 hours agoCommunity ChampionNew11Views1like0CommentsBulk changing column names in Visualizations Pane
We often use raw/api column names or measures with a set nomenclature to be consistent and to keep track of them but we do not want to display these names in the visuals. Currently we have to change ...vishal14019710 hours agoFrequent VisitorNew6Views0likes0CommentsAbout "Download SQL database project" and fix the downloaded project
1. The sqlproj must be fixed, it is downloaded without the xml markup line <?xml version="1.0" encoding="utf-8"> 2. The sdk must be updated: Actual: <Sdk Name="Microsoft.Build.Sql" Version="0.1...Jarrinf20 hours agoFrequent VisitorNew48Views3likes2Comments