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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

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 60

Hi,

We have created a non interactive user in Dynamics CRM for SSIS Packages, i have assigned the Administrator Security Role to Non Interactive user, but when i run the package with Non Interactive user, it raised the error   "An error has occurred when retrieving metadata for CRM entity 'businessunit'"

Complete Error

Description: An error occurred with the following error message: "KingswaySoft.IntegrationToolkit.DynamicsCrm.CrmServiceException: CRM service call returned an error: An error has occurred when retrieving metadata for CRM entity 'businessunit': An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. (Error Code: FailedAuthentication) (SSIS Integration Toolkit for Microsoft Dynamics 365, v11.1.0.7311 - DTExec, v11.0.6020.0)System.ServiceModel.Security.MessageSecurityException : An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.System.ServiceModel.FaultException : Authentication Failure". End Error Error: 2019-11-26 14:48:56.83 Code: 0x80004005 Source: BU's Dynamics CRM Source [11] Description: Attempt to read message string for 0xc02090f5 failed with error 0xc02090f2. Make sure all message related files are registered. End Error Error: 2019-11-26 14:48:56.85 Code: 0xC0047038 Source: BU's SSIS.Pipeline Description: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Dynamics CRM Source returned error code 0xC02090F5. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 14:48:02 Finished: 14:48:57 Elapsed: 54.64 seconds. The package execution failed. The step failed.

I have the same question (0)
  • Bilal079 Profile Picture
    60 on at
    RE: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

    Hi Daniel Cai,

    Thank you so much for your kind response,

    Issue is fixed by giving the connection string through expressions,

    i have created a variable string type

    copy the connection string (Connection name => properties => connection string)

    and put the connection string with the user's password into variable.

    map variable to connection's expression (Connection name => properties => expressions)

    Thanks again for your help.

  • Verified answer
    Daniel Cai Profile Picture
    935 on at
    RE: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

    If you can run the package at design time by executing it from within Visual Studio, but not deployed job, then it is an SSIS deployment issue. By default, those sensitive information (such as password, security token, etc.) in SSIS connection managers are protected by user key, which is tied to the user account and also the system where the package is developed. When you deploy the package, you will have to re-specify those sensitive fields in the connection manager. This can be done within SQL Server Management Studio by opening up the job definition there.

    Check out one of our recent blog posts at www.kingswaysoft.com/.../Parameterizing-CDSCRM-Connection-Manager which discusses some parameterizing.

  • Bilal079 Profile Picture
    60 on at
    RE: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

    @Daniel

    Thanks for your response,

    I have checked i can run the package when i trigger it within the SSIS Package but when i try to run the package from Sql Server Job it raised this error

    "An unsecured or incorrectly secured fault was received from the other party"

  • Daniel Cai Profile Picture
    935 on at
    RE: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail.

    The "An unsecured or incorrectly secured fault was received from the other party" error generally means that there is a problem with the login credentials specified for the connection user. 

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 172

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 116 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans