Forum Discussion
frolesti
2 years agoFrequent Visitor
PowerBI API - Export To File call failing miserably
Hi there! I am using the PowerBI API from an external application, trying to export PBI reports from it but keep having the same vague error message: { "message": "{\"error\":{\"code\":\"Invali...
AmosHersch
2 years agoMicrosoft Employee
frolesti I think that an effective identity with username and without roles isn't valid in most scenarios.
Why aren't you passing the required role?
frolesti
2 years agoFrequent Visitor
Hi
We are not passing roles since we are dealing with the reports fom an external application and the roles are manually added from there, so most of the roles come back as empty.
I don't know if there is some kind of standard role such as "reader" or something like that that can provide an existing role and will prevent the error from happening.
I am not profficient in PowerBI so I did not know that this was so conflictive. I'd like to know as well if you recommend to pass this role from powerBI or should I pass it in the backend of my app to act as a safenet.
Thank you in advance!