Forum Discussion

NazarStasiuk's avatar
NazarStasiuk
New Member
1 year ago
Solved

Importing .pbix files using Rest API and Microsoft.PowerBI.Api package fails with no error details

Hello team We've started facing an issue with PowerBI API as of lately (spotted on May 23rd). We are using method PostImportWithFileInGroup to upload a .pbix file to our workspace and afterwards w...
  • NazarStasiuk's avatar
    1 year ago

    Thank you, v-aatheeque 
    We've managed to figure out the issue.

    This was rather interesting case. Applying to the API using SDK package (the one mentioned in the title, Microsoft.PowerBI.Api) returned just import state failed, no error details in that response.
    But we've called the same api through 'REST API Try It' tool. There was a difference in account used - it was not service principal, but personal admin account and that one did produce a result with error details including error code: DMTS_PowerBIDataMovementUserDatasourceExceededLimit 

    It appeared to be and issue with reaching maximum allowed number of datasources (we'e hit 1000). As soon as we removed some reports and datasources subsequently, api returned to normal operation.