Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

[Trouble Shooting]Exception 'Exception' occured while acquiring token:

Posted on by 5

Hi guys,

I am getting the below error whenever the workflow tries to reopen the case.

Can somebody help me resolve this issue.

Exception 'Exception' occured: Exception while acquiring token: System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Unexpected HTTP code returned by TPS (Trusted Publisher System) for 'publishers.crm5.dynamics.com/.../challenge', Expected: 401, Actual: ServiceUnavailable (Fault Detail is equal to Exception details: ErrorCode: 0x80040216 Message: Unexpected HTTP code returned by TPS (Trusted Publisher System) for 'publishers.crm5.dynamics.com/.../challenge', Expected: 401, Actual: ServiceUnavailable TimeStamp: 2023-02-08T06:27:54.0000000Z -- )., CorrelationId: 9b5acbfa-2d98-455e-8d32-5ed93abb25bf

  • Suggested answer
    Haig Liu Profile Picture
    Haig Liu Microsoft Employee on at
    RE: [Trouble Shooting]Exception 'Exception' occured while acquiring token:

    Hi Jessica Su,

    A number of possible reasons exist here:

    First of all, the "Expected: 401, Actual: ServiceUnavailable" error points out that the problem is related to the server.

    http://dynamics365ax2012.blogspot.com/2018/05/how-to-troubleshoot-service-in.html

    Next, about the other error 0x80040216 I didn't find the reason, maybe it's because of the version issue maybe not.
    You can try to solve it by removed editable grids both on the entity throwing the error and the other entity in the solution that was enabled for editable grids.

    "CorrelationId: 9b5acbfa-2d98-455e-8d32-5ed93abb25bf" can help you find which workflow is in error. of course I think you have found it.

    If none of the above helps you, I think the problem may lie in the design of the workflow.

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans