bguidinger / powerbi-build-tools

Power BI Build Tools for Azure DevOps
MIT License
8 stars 3 forks source link

Operation returned an invalid status code 'BadRequest' #28

Open mcharing opened 3 years ago

mcharing commented 3 years ago

Hi,

I am using the Power BI Build Tools extension with a Service principal. I keep running into the same message; Operation returned an invalid status code 'BadRequest'

The service principal has all API deligated permissions for Power BI and is part of a secutiry group. The service principal and security group are both admin of the Power BI workspace. In the power BI admin portal access for service principals to use Power BI API's is allowed for the entire organization. In DevOps a service connection is created based on the Service Principal.

Please find attached the error and the yaml file. What am I doing wrong?

error_BG yaml_BG_part1 yaml_BG_part2

Alin-Dumitrescu commented 3 years ago

I am running into exactly the same issue. I am able to Export the pbix using the Export Task, however the Import task is throwing a bad request error. I can import the pbix using the web ui without any issues.

What could be the problem?