Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I'm publishing a PBI semantic model sourced from a Gen1 dataflow. The publication is done via a PowerShell script, in which I connect to Power BI with a service principal, publish the model, and perform a takeover. Then I modify the dataset parameters. Everything works correctly. The problem arises when refreshing the model, where I get a 403 error:
Data Source Error: DataSource.Error: Downstream service call to url 'https://api.powerbi.com/powerbi/globalservice/v201606/clusterdetails' failed with status code 403.
The service principal has administrator privileges in the workspaces where the model and dataflow are stored.
Note: Refreshing works without issue if I publish via the desktop using a user account.
I then tried modifying the SPN credentials via a script, but while the script executes correctly, the refresh still fails.
Has anyone else ever encountered this situation?
Thanx for your help
Hi @J-Luc ,
May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.
Thank you.
Hi @J-Luc ,
We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.
Best Regards,
Chaithra E.
Hey @J-Luc ,
This 403 error when refreshing a dataset using a Service Principal (SPN) usually boils down to permission issues even if it looks like your SPN already has admin rights.
Here’s what’s happening and how to fix it in plain terms:
So, to summarize:
Hi @J-Luc
What I would recommend doing is making sure you can set up a shared data source connection that can use the service principal to authenticate and then when you are uploading your semantic model you use the shared source connection so that you don't have to implicitly change the connection settings.
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.