High severityauthentication
Power BI Refresh Error:
OAUTH_TOKEN_EXPIRED
What does this error mean?
An OAuth access token used to authenticate a Snowflake connection has expired, causing the client application or partner integration to be rejected until a new token is obtained.
Common causes
- 1The OAuth access token TTL elapsed and the application did not implement token refresh logic
- 2The refresh token also expired (typically after 90 days of inactivity), requiring full re-authorization
- 3The Snowflake OAuth integration was recreated, invalidating all previously issued tokens
- 4Clock skew between the application server and Snowflake caused premature token expiry detection
How to fix it
- 1Step 1: Identify whether the access token or the refresh token expired — check the error detail in the Snowflake query history.
- 2Step 2: For expired access tokens, use the refresh token to obtain a new access token via the OAuth token endpoint.
- 3Step 3: If the refresh token also expired, re-run the OAuth authorization flow to obtain a new token pair.
- 4Step 4: Implement automatic token refresh in your application before the access token expiry time.
- 5Step 5: Review the Snowflake OAuth integration parameters (OAUTH_ACCESS_TOKEN_VALIDITY, OAUTH_REFRESH_TOKEN_VALIDITY) and extend if needed.