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.
Hi Team,
In Power BI report, I was connecting the Dataflow as a data source.
I am using OAuth2 as the authentication method to connect to the Dataflow for scheduled refresh. However, the connection expires after 24 hours, and I have to re-enter the credentials again every day to make the connection successful.
How can I resolve this issue and automate the scheduled refresh without needing to manually re-enter the credentials every day?
Thanks,
w_Das
Hi @w_Das ,
Thanks for 3CloudThomas's reply!
And @w_Das , Based on the screenshot you provided, it seems that you are using Dataflows Gen1. Dataflows Gen1 is about to be deprecated, and when using OAuth2 credentials in Dataflows Gen1, the gateway does not support automatic refresh of tokens when the access token expires.
https://learn.microsoft.com/en-us/data-integration/gateway/service-gateway-onprem-faq#why-do-i-get-t...
You can refer to the user's answer in this thread:
Re: Oauth2 gateway bugs affecting datasets not dat... - Microsoft Fabric Community
If you don't want to manually update the credentials every time, the best thing to do is to change your dataflow from Gen1 to Gen2.
Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
execute the dataflow 2-3 times a day and see if the authentication sticks. Not running for 24 hours expires the token in your case.
User | Count |
---|---|
123 | |
77 | |
62 | |
50 | |
49 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |