web
You’re offline. This is a read only version of the page.
close
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.

I have the same question (0)
  • Suggested answer
    Susana Carneiro Profile Picture
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans