Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I've created a REST query that uses a bearer token, which it gets from a function I've created:
Function:
Query:
It refreshed fine for a while but then, after a certain amount of time, the refresh stops working and I get a 'can't authenticate using these credentials' message.
If I invoke my function it produces a new access token, so it can't be that. What I did was, go to my data source settings for the two queries, clear their permissions and then refresh again, ignoring privacy rules and they start refreshing again, without issue...
I can even clear permissions and set them to public and they refresh fine aswell!
With either solution, after a certain amount of time they stop working again and I have to repeat this exercise, clearing data source permisions and then refreshing them again, which is not helpful for the end client.
I created an Azure Datafactory pipeline, doing the same thing as Power BI and it worked for 3 days straight, refreshing every 15mins without issue, exporting to a JSON that I could import into Power BI. I also can replicate the REST API in Postman without any issues, leading me to believe the issue lies in Power BI somewhere.
Has anyone come accross this or have any dieas what is going on?
@ImkeF you've helped me before, any thoughts?
Update:
It appears to be the GetAccessToken() function that is causing the issue.
Essentially, if I stop it being a function, clear its permissions and then run it, setting the permissions on run time, it then returns a string happily. I then set it back to a function and then I can run everything else fine...weird!?
Any thoughts @ImkeF?
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
26 | |
20 | |
13 | |
11 | |
10 |