web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ERROR FROM TOKEN EXCHA...
Power Apps
Unanswered

ERROR FROM TOKEN EXCHANGE. BAD AUTHORIZATION TOKEN. THE ACCESS TOKEN HAS EXPIRED

(1) ShareShare
ReportReport
Posted on by 8

I have this error when using my apps, it happens many times in the day, and we have not made changes to the app, the last thing that was done was to update Power Apps on the tablets. Someone has the same problem or an idea how to solve it.

 

"ERROR FROM TOKEN EXCHANGE. BAD AUTHORIZATION TOKEN. THE ACCESS TOKEN HAS EXPIRED"

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @raristondo ,

    Based on the issue that you mnetioned, it seems to tell that there is something wrong with the connection in your app. The connection you added within your app may be invalid.

     

    Please check if the connection you added within your app is valid, if not, please update the connection within your app.

     

    In addition, please also consider re-create a new connection to the data source (you added within your app) from your app, then try your app again, check if the issue is fixed.

     

    More details about adding a connection within an app, please check the following article:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-data-connection

     

    Best regards,

  • PK_Blazquez Profile Picture
    41 on at

    I am constantly taking the conections out then re-adding them back in, constantly signing out then back it. 
    I AM Still getting this message, please help.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Bump for this.

     

    This is an issue for many people right now, apps that have always worked have suddenly begun giving these token errors when updating share point lists. 

     

    Happening on every iPad I put it on, intermittently, and regardless of the WiFi network I put them on. 

     

    Something you you guys have changed recently is messing with tokens. Not sure if on share point side or PowerApps but the OP is right, this is something new that has just started occurring in the past week or two.

  • luuminhvuong93 Profile Picture
    300 on at

    I AGREE absolutely Crazy,

    Especially if I use Flow integrated in Powerapps 

    This "token has expired" happen quite often 

  • PK_Blazquez Profile Picture
    41 on at

    I switched to a new account that has never opened powerapps before and it hasn't poped up yet.
    This points to there being an issue with the refresh token itself not refreshing. so you only get the active tokens wich last 1 hour whenever you authenticate.
    This would be a VERY serious issue if it is the case.
    Please fix ASAP.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Made an app specifically to test this error today.

     

    It is a very simple, patch new line of data into a sharepoint list.

     

    Tested a few different things by using it.

     

    First I opened PowerApps on the Ipad and left it open for about 20 minutes.

     

    Then I opened the App to test with which started a countdown timer (2HRS). Every 10 minutes I clicked the submit button  with following code in it's OnClick

     

    Patch(TESTPOWERAPPS,Defaults(TESTPOWERAPPS),{Title:"TEST",time:Now()})

     

    Once the timer hit 1hr 20 minutes, the error everyone is mentioning occured.

     

    120.png

     

    At this point I hit the refresh button I added to test if it was correctable by an inapp refresh, it's onclick is

     

    Refresh(TESTPOWERAPPS)

    I then clicked submit again and recieved the same error.

     

    Next step I closed the APP only (not whole powerapps prograM) via swipe, then reopened the app and tried submitting again. Same error message again.

     

    Finally I closed the PowerApps program completely, reopened it, and loaded up the app and THIS let it submit.

     

    SO in summary, about 1 HR after you open the powerapps program (not the apps within it) you will begin facing token issues.

     

    I found 1 iPad that it does not occur on, an Ipad Pro, with a different iOs operating system version, so that may be another place to look for issues

     

    See below

    Broken TokensBroken TokensTokens WorkTokens Work

     

  • raristondo Profile Picture
    8 on at

    I still have problems, the behavior is what you indicate, we have not made any changes in our app's, however after a few minutes it returns to normal. As someone mentioned, it seems that the connection is not self-renewing automatically. Will there be any report or solution from the Power Apps team?

  • PK_Blazquez Profile Picture
    41 on at

    I have 3 cheap tablets running the same app simultaniously.
    I switched to a new account that has never use powerapps before to garentee authentication.
    I Turned off any experimental settings in the app.
    And I AM STILL getting this ERROR. 
    Luckily still in trail period in this office but if this happens after we launch I am in Serious Trouble.

    I am having to close and reopen powerapps on the tablets every 55 minutes as the active token doe not refresh automaticaly.

    I would put this down as a Class A, at minimum Class B, Bug.
    Please Fix ASAP.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Ran my app for testing this issue again this morning. Failed again at the 1 hr of powerapps being open point. Hoping a staff member takes a look here soon.

  • Jinman Profile Picture
    Microsoft Employee on at

    Checked telemetry. You are right. The error,http400, got increased recently. I dropped an email to folks to look at this matter with priority. will keep you posted.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard