Forum Discussion
Timeout getting Auth Token from MS Graph or PBI API
- 1 year ago
Yes. The issue seems to have gone away about 3 days ago across all tenants at the same time. First level support doest seem to know much. I'm happy it's fixed but a little disappointed in the lack of understanding and communication.
Hi jake_BIV ,
My recommendation will be getting tenant id, client id,client secret from your organisations AD team, with this details you can create one function to generate access token and you can pass it through your m-query.I'm doing the same to pull data from MS graph.
I hope it will be helpful.
Thanks,
Sai Teja
SaiTejaTalasila
That is what this query was doing. It was generating the token (from the Tenant, Client, Secret parameters), then passing to the next query.
The problem is that its not generating an access token. Do you have an example of the m-code function you are using to generate the token? Is it working in Power BI Service? Is it different than the M-Script I provided?
- SaiTejaTalasila1 year agoSuper User
Hi jake_BIV ,
Try this -
-Disable load for all parameters (right click and disable load). Don't disable it for access token function query.
-authentication type- anonymous and privacy -public.
I hope it works. If it's not working you can reach out to me directly and I will be able share how I defined parameters and created the function to generate access token.
Thanks,
Sai Teja
- jake_BIV1 year agoHelper I
SaiTejaTalasila I have created a test Gen1 dataflows in Power BI service and setup as a function. The only change was setting the Privacy to 'Public' (Was: Organiztional). However, I am getting the same issue. Please note it works fine in Power BI Desktop so that tells me the syntax and parameters are all correct.
I am going to reach out to you via private chat to see if you can share what you are doing. I would expect you to be having the same issue in PBI Service.- AlejandroOS1 year agoRegular Visitor
Hello,
It's happening the same on my end, Power BI Desktop can make a request a get the access token, but via Power BI service the result is a timeout.
Have you fixed it?
Regards,