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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Singh_10
Helper I
Helper I

Graph API n power bi error with Access token

Suddenly error occured with the API working till yesterday.  Apps secret ID is active till March 2025

 

An error occurred in the ‘’ query. Expression.Error: The field 'access_token' of the record wasn't found.
Details:
error=invalid_grant
error_description=AADSTS700082: The refresh token has expired due to inactivity. The token was issued on 2024-07-08T22:45:56.2765304Z and was inactive for 90.00:00:00. 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @Singh_10 - You need to go through the authentication process again to generate a new access token and refresh token pair. This process involves obtaining a new authorization code, and using it to exchange for a fresh access and refresh token.

Update the Refresh Token:After obtaining a new refresh token, ensure it is stored securely and used for future requests. Moving forward, make sure that the token is refreshed before it expires again.

Azure Active Directory allows you to configure token lifetimes. If you want to extend the refresh token validity, you can modify the token lifetime policy using Azure AD PowerShell or Microsoft Graph API. However, be aware that policies regarding refresh tokens may have restrictions, and extending the lifetime might not always be possible.

Configurable token lifetimes - Microsoft identity platform | Microsoft Learn

Refresh token expiry and the corresponding error message - Microsoft Q&A

AADSTS700082: The refresh token has expired due to inactivity - Microsoft Q&A

Solved: DMTS_OAuthTokenRefreshFailedError - The refresh to... - Microsoft Fabric Community

"error":"invalid_grant","error_description":"AADSTS700082: The refresh token has expired due to inac...

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
rajendraongole1
Super User
Super User

Hi @Singh_10 - You need to go through the authentication process again to generate a new access token and refresh token pair. This process involves obtaining a new authorization code, and using it to exchange for a fresh access and refresh token.

Update the Refresh Token:After obtaining a new refresh token, ensure it is stored securely and used for future requests. Moving forward, make sure that the token is refreshed before it expires again.

Azure Active Directory allows you to configure token lifetimes. If you want to extend the refresh token validity, you can modify the token lifetime policy using Azure AD PowerShell or Microsoft Graph API. However, be aware that policies regarding refresh tokens may have restrictions, and extending the lifetime might not always be possible.

Configurable token lifetimes - Microsoft identity platform | Microsoft Learn

Refresh token expiry and the corresponding error message - Microsoft Q&A

AADSTS700082: The refresh token has expired due to inactivity - Microsoft Q&A

Solved: DMTS_OAuthTokenRefreshFailedError - The refresh to... - Microsoft Fabric Community

"error":"invalid_grant","error_description":"AADSTS700082: The refresh token has expired due to inac...

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





I have generated the new Access token and refresh token and authcode .. now everything works fine

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.