Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Error creating new file asset: 'Invalid OAuth token was presented.'

Posted on by 72
Hi guys,
 
Since last Friday 5/7/2024 our pipeline is failing to upload into asset library.
Error - Error creating new file asset: 'Invalid OAuth token was presented.'
 
I've changed the user password, renewed the token(was not expired anyway), but still we are facing this issue out of nowhere.
The account does NOT have MFA enabled.
 
Interesting part is that we are using the same account for fetching environment metadata, but it is failing as well.
 
Anyone had similar issue recently ?
 
Thanks.
  • Anthony Blake Profile Picture
    Anthony Blake 2,184 Super User 2024 Season 2 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Retested - resolved for my project.
  • Anthony Blake Profile Picture
    Anthony Blake 2,184 Super User 2024 Season 2 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Thanks, I will also retest
  • Verified answer
    SM-17050844-0 Profile Picture
    SM-17050844-0 72 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    For us it is resolved.
    Pasting the comments from Microsoft support below - exactly what i have expected...
     
     
     
    . as far as the root cause of the issue it was due to a code regression, LCS API was failing to authenticate requests made to it with an Oauth token which uses the URL as the resource rather than the application Id. 
    Eg. "lcsapi.lcs.dynamics.com rather than ***************************

    Generating oauth tokens this way is known to be done by the AzDO pipelines which attempt to call to LCSAPi and thus is causing them to fail with the error message “'Invalid OAuth token was presented” Code regression was known to be present in all public cloud regions of LCS. So, a lot of customers in different regions were impacted. 

     
    what has been done to fix it was Traffic manager changes have been made to direct traffic to working versions in all regions, GCC has been disabled in the problem region and the problem version has been disabled in other regions as well.  Traffic manager changes have been made to direct traffic to working versions in all regions. Hotfix build has been deployed and was completed. 
    . as far as the root cause of the issue it was due to a code regression, LCS API was failing to authenticate requests made to it with an Oauth token which uses the URL as the resource rather than the application Id. 
    Eg. "lcsapi.lcs.dynamics.com rather than 913c6de4-2a4a-4a61-a9ce-945d2b2ce2e0")

    Generating oauth tokens this way is known to be done by the AzDO pipelines which attempt to call to LCSAPi and thus is causing them to fail with the error message “'Invalid OAuth token was presented” Code regression was known to be present in all public cloud regions of LCS. So, a lot of customers in different regions were impacted. 

     
    what has been done to fix it was Traffic manager changes have been made to direct traffic to working versions in all regions, GCC has been disabled in the problem region and the problem version has been disabled in other regions as well.  Traffic manager changes have been made to direct traffic to working versions in all regions. Hotfix build has been deployed and was completed. 
     
  • Anthony Blake Profile Picture
    Anthony Blake 2,184 Super User 2024 Season 2 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Is anyone still getting this issue today or is it now resolved?
  • Krzysztof.Jasek Profile Picture
    Krzysztof.Jasek 3 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Hi ,
     
    we got exactly the same error on our pipelines, when publishing package to asset library and also it started since last Friday 5/7/2024 afternoon.
  • SM-17050844-0 Profile Picture
    SM-17050844-0 72 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Yes,
     
    I had a quick discussion with Microsoft on this.
    It was supposed to be fixed last week but is not...
     
    Chances are that we will wait at least by the end of the day.
  • Anthony Blake Profile Picture
    Anthony Blake 2,184 Super User 2024 Season 2 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Looks like a regional issue, lots of reports on Yammer for Europe today:
  • Anthony Blake Profile Picture
    Anthony Blake 2,184 Super User 2024 Season 2 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Wow, so ignore my earlier post - my pipeline just failed to upload with the exact same issue, I jumped the gun reporting it as successful.
     
    Looks like something changed or is broken their end.
  • SM-17050844-0 Profile Picture
    SM-17050844-0 72 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Hey Anthony,

    Editted.
    Could be an issue from Microsoft, but this Issue id is not in LCS.



     
    Thanks for reaching out.
     
    Nothing out of the ordinary there.
    I changed the password once this was changed in ENTRA ID.
     
    The rest of the setup is the same.
     
    BTW.
    What do you have under authentication endpoint and lcs endpoint ?
  • Anthony Blake Profile Picture
    Anthony Blake 2,184 Super User 2024 Season 2 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Hi,
     
    I've just checked an upload pipeline in case, and the asset uploaded fine had the same issue. Could you hit edit on your connection in DevOps and share the settings? Obviously redact anything sensitive. 
     
    Thanks

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans