SKampmann's avatar
SKampmann
New Member
6 years ago
Status:
Needs Votes

Deploy Report with Changed Live Connection

We use the Power BI API for the deployment of Power BI Datasets and Reports with LiveConnect to Workspaces in powerbi.com. We have different users for our development, acceptance and production environments. First, we deploy the dataset from a pbix-file using the API method PostImportWithFileAsyncInGroup. Then we deploy the report from another pbix-file using the same method. Finally we bind the report to the new dataset using RebindReportInGroup. This works fine for our development environment, but in other environments we get a PowerBIModelNotFoundException while deploying the Power BI Report, since the pbix-file has a connection to a deployed Power BI Dataset, were the identity is not permitted to access. So it would be great to add a parameter to PostImportWithFileAsyncInGroup to ignore the invalid reference and publish the report anyways, so we can call RebindReportInGroup afterwards. Another solution would be to add a dataset ID as optional parameter to PostImportWithFileAsyncInGroup that calls RebindReportInGroup internally.

Recent ideas