Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

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

Posted on by 35
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 1,234 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Retested - resolved for my project.
  • Anthony Blake Profile Picture
    Anthony Blake 1,234 on at
    Error creating new file asset: 'Invalid OAuth token was presented.'
    Thanks, I will also retest
  • SM-17050844-0 Profile Picture
    SM-17050844-0 35 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 1,234 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 35 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 1,234 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 1,234 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 35 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 1,234 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

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,420 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,672 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans