Forum Discussion
Programatically connecting to power BI premium workspace using workspace url
As far as I can tell, the connection string looks fine. Can you confirm that this workspace is associated with a dedicated capacity?
- Anonymous4 years agoNot applicable
TedPattison No workspace is not associated with dedicated capaticy.
Premium per user is enabled for the workspace.
Do we require premium capacity to perform data refresh?
- lbendlin4 years agoSuper User
The documentation doesn't mention anything explicitly but I wouldn't be surprised if there were API limitations too
- TedPattison4 years agoMicrosoft Employee
Can you confirm your user ID is for a user with a Power BI Premium per User license.
Did you copy the URL from workspace setting to ensure it matches- Anonymous4 years agoNot applicable
Am having Premium Per User license.
Please find the below screenshot for reference.
- TedPattison4 years agoMicrosoft Employee
OK, one more thing to check. The Capacity administrator has the ability to set the XMLA endpoint to Off, Read Only or Read Write. If it is set to Off, the behavior you are seeing is expected. Are you able to check the XMLA Endpoint setting in Capacity Settings in the Power BI Admin portal as shown in this screenshot? If you don't have Capacity Admin permissions, you will need to find someonbody who does.
- Anonymous4 years agoNot applicable
I tried with Username, Password and with Access token as well.
But am getting the same error in both cases.