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 :
Microsoft Dynamics CRM (Archived)

Unable to import solution with package deployer

(0) ShareShare
ReportReport
Posted on by

We have a setup with several identical servers which require the same solutions to be installed.

If I try to import a new solution, with the package deployer, I get (to me at least) rather vague errors from the log file it gives me.
Which led me to believe the solution had issues.
But if I import that same solution by hand to that server, there are no problems whatsoever.

I'd appreciate any leads on where to look for clues.

Below is an extract of the log for the failed import

Microsoft.Xrm.Tooling.Connector.CrmServiceClient Verbose 16 17/01/2019 11:33:17 Failed to Execute Command - ImportSolution : RequestID=5deed11e-bbb7-473a-a70e-66d8316f69fc : duration=00:00:04.6515190
Microsoft.Xrm.Tooling.Connector.CrmServiceClient Error 2 17/01/2019 11:33:17 Source : mscorlib
Method : HandleReturnMessage
Date : 17/01/2019
Time : 11:33:17
Error : Message: Solution manifest import: FAILURE
ErrorCode: -2147188685
Trace: 
Stack Trace : Server stack trace: 
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Execute(OrganizationRequest request)
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.CrmCommand_Execute(OrganizationRequest req, String errorStringCheck)
======================================================================================================================
Inner Exception Level 1 : 
==OrganizationServiceFault Info=======================================================================================
Error : Solution manifest import: FAILURE
Time : 17/01/2019 10:33:17
ErrorCode : -2147188685
Date : 17/01/2019
Time : 11:33:17
Trace : Not Provided
======================================================================================================================
Inner Exception Level 2 : 
==OrganizationServiceFault Info=======================================================================================
Error : System.Data.SqlClient.SqlException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #152BEF49
Time : 17/01/2019 10:33:17
ErrorCode : -2147220970
Date : 17/01/2019
Time : 11:33:17
Trace : Not Provided
======================================================================================================================

PackageDeployment Error 2 17/01/2019 11:33:17 Message: CERTX782 - Importing solution threw and unforeseen exception
Source : mscorlib
Method : HandleReturnMessage
Date : 11:33:17
Time : 17/01/2019
Error : Solution manifest import: FAILURE
Stack Trace : Server stack trace: 
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
at Microsoft.Xrm.Tooling.PackageDeployment.CrmPackageCore.ImportCode.BaseImportCustomizations.ExecuteImportSolution(ConfigSolutionFile Sol, String sSolutionImportFilePath)
======================================================================================================================

PackageDeployment Information 8 17/01/2019 11:33:17 Status: Failed to load solution CERTX-782, version: 1.6.22.1. See the log file.
PackageDeployment Information 8 17/01/2019 11:33:17 ****** PACKAGE DEPLOYMENT PROCESS COMPLETED. Result:FAILED Duration:00:00:15.4618484 ******
PackageDeployment Information 8 17/01/2019 11:33:17 Completed Processing Of Solution: CERTX-782(CERTX782), Version: 1.6.22.1, PackageVersion: 8.2 , Duration: 00:00:05.3751606


*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Unable to import solution with package deployer

    Thx for the tip.

    But isn't 9.0.0.4 relatively old?

    We used version 9.0.2.4 because the 9.0.2.7 gave issues.

    I ran our ps-script manually with 9.0.0.4, which did give me more usable output.

    So thanks and yeay, progress.

    code: 0x80048033

    Description: Violation of UNIQUE KEY constraint 'UQ_LocalizedLabelCheck'. Cannot insert duplicate key in object 'MetadataSchema.LocalizedLabel'. The duplicate key value is (1bceeb67-6860-46b5-a688-61a39207d0de, friendlyname, 1033, Jan  1 1900 12:00AM, 0).

    The statement has been terminated.

    My preliminairy search led me to a lot of upgrade-issues which had this as wel, but that's not the case here.

    So I'll need to do some more digging.

  • Rhett Clinton Profile Picture
    Moderator on at
    RE: Unable to import solution with package deployer

    Do you have the latest Nuget Package Deployer version? www.nuget.org/.../9.0.0.4-Preview

    Review the notes here and ensure you have not missed anything.

    docs.microsoft.com/.../deploy-packages-using-package-deployer-windows-powershell

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans