Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
StephenF
Responsive Resident
Responsive Resident

Token expiry issues refreshing a semantic model

 

I'm getting  a"DM_GWPipeline_Gateway_MashupDataAccessError" refreshing a semantic model connected to a local dataflow.

 

Seems like some sort of token expiry issue. Every time I have to build a new connector?

 

Is there anyway of making this go away or appear less often. The connection is OAuth 2.0. In the gateway settings the refresh thing is even green but fails and i have to remake a new connection every few months.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @StephenF ,

When a client acquires an access token to access a protected resource, the client also receives a refresh token. The refresh token is used to obtain new access and refresh token pairs when the current access token expires.You can't configure the lifetime of a refresh token. You can't reduce or lengthen their lifetime.Perhaps you can configure a scheduled refresh, where a refresh within the refresh token's validity period will acquire a new refresh token.

Data refresh in Power BI - Power BI | Microsoft Learn

Refresh tokens in the Microsoft identity platform - Microsoft identity platform | Microsoft Learn

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
StephenF
Responsive Resident
Responsive Resident

If i relogin to the oauth on the gateway, it works again. Is there a way to automate this?

In the gateway clicking the refresh button and getting a green symbol testing the connection does not help.

Anonymous
Not applicable

Hi @StephenF ,

When a client acquires an access token to access a protected resource, the client also receives a refresh token. The refresh token is used to obtain new access and refresh token pairs when the current access token expires.You can't configure the lifetime of a refresh token. You can't reduce or lengthen their lifetime.Perhaps you can configure a scheduled refresh, where a refresh within the refresh token's validity period will acquire a new refresh token.

Data refresh in Power BI - Power BI | Microsoft Learn

Refresh tokens in the Microsoft identity platform - Microsoft identity platform | Microsoft Learn

 

Best Regards,
Wenbin Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.