
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.
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:
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.