Forum Discussion
PowerBI API - Export To File call failing miserably
Yes, RLS is activated in the dataset. It has worked until recently, I had some error before related to the roles, I have added a conditional with an empty array for strings and the roles error disappeared, but now I have this one. I don't know, it seems like something has happened since the code hasn't been modified for a long time.
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?
- frolesti2 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!