web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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 23

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.

I have the same question (0)
  • Suggested answer
    Susana Carneiro Profile Picture
    Microsoft Employee on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 81 Super User 2026 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

#3
11manish Profile Picture

11manish 62

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans