Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

Microsoft.Xrm.Sdk.InvalidPluginExecutionException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

Posted on by 2

Dear all,

We have onpremises application which is sending data to Dynamic 365 online through service. we are getting error.

"Microsoft.Xrm.Sdk.InvalidPluginExecutionException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. "

TLS 1.2 applied. service was running fine from last 2years. no change in code.

  • Suggested answer
    RE: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

    Hello Dhara,

    The error message "An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail", is a very generic WCF exception which can be caused by several different reasons:

    • AAD enforces MFA:
      • One of reasons could be MFA is enabled on the your AAD instance.
        • This is true for all @microsoft.com account.
      • When this is the case, supplying a orgUrl/username/password won't work.
      • And if you have WCF log enabled, you can see it talks to IMetadataExchange and has some exception.
        pastedimage1606212760481v1.png
      • While in a working case, it should talk to IOrganizationService:
        pastedimage1606212798458v2.png
    • AAD Conditional Access removes Legacy Access (e.g. WS_Trust):

    Could you please validate if MFA is enable for your Dynamics 365 online instance? This ca be checked following the steps mentioned here,Enable per-user Multi-Factor Authentication - Azure Active Directory | Microsoft Docs.

    In this situation we also recommend the usage of CrmServiceClient class as it's future version will deprecate or fully remove the .OrganizationServiceProxy. Please refer to Important changes coming in future releases of Microsoft Dynamics 365 | Microsoft Docs to get more details around this topic.

    Hope this helps.

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... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans