Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
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.

(0) ShareShare
ReportReport
Posted on by 13

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
    Susana Carneiro Profile Picture
    on at
    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.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,145 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,917 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans