I am trying to use powershell scripts from module Microsoft.Xrm.Data.Powershell to import solution to crm3.dynamics.com. I was also trying to use the Azure DevOps pipelines PowerPlatform tasks to do the same (https://docs.microsoft.com/en-us/power-platform/alm/devops-build-tools), but I am still receiving the same results.
I am running this script:
$crm = Connect-CrmOnline -Username "myUserName" -ServerUrl "">MyCOMPANY.crm3.dynamics.com/"
Import-CrmSolution -conn $crm -SolutionFilePath "MYSOLUTION.zip" -Verbose -SkipDependancyOnProductUpdateCheckOnInstall
WARNING: UserName parameter is only compatible with oAuth, forcing auth mode to oAuth
VERBOSE: Importing solution file MYSOLUTION.zip into: https://MyCOMPANY.crm3.dynamics.com/XRMServices/2011/Organization.svc/web?SDKClientVersion=9.0.45.2156
VERBOSE: OverwriteCustomizations: False
VERBOSE: SkipDependancyCheck: True
VERBOSE: ImportAsHoldingSolution: False
VERBOSE: Maximum seconds to poll for successful completion: 900
VERBOSE: Calling .ImportSolutionToCrm() this process can take minutes...
VERBOSE: ImportId: 00000000-0000-0000-0000-000000000000
Import-CrmSolution : System.Management.Automation.RuntimeException: ************ FaultException`1 - ImportSolution : Executing ImportSolutionRequest for ImportSolutionToCrm |=> Code: InternalServerError
Content: DataflowModelActor_DataflowDeleted
Code: InternalServerError
Content: DataflowModelActor_DataflowDeleted[TerminalFailure] Failed to Execute Command - ImportSolution : RequestID=e04856b9-ebd0-42c0-8576-93a71fa92a0f : Executing ImportSolutionRequest for ImportSolutionToCrm
duration=00:00:15.3745879 ExceptionMessage = Code: InternalServerError
Content: DataflowModelActor_DataflowDeleted
Code: InternalServerError
Content: DataflowModelActor_DataflowDeleted
At Untitled2.ps1:2 char:1
+ Import-CrmSolution -conn $crm -SolutionFilePath "MYSOLUTION ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Import-CrmSolution
sometimes I am getting also this exception:
Import-CrmSolution : System.Management.Automation.RuntimeException: ************ FaultException`1 - ImportSolution : Executing ImportSolutionRequest for ImportSolutionToCrm |=> Code: InternalServerError
Content: DataflowModelActor_DataflowModelAndMeatadataNotConsistent
Code: InternalServerError
Content: DataflowModelActor_DataflowModelAndMeatadataNotConsistent[TerminalFailure] Failed to Execute Command - ImportSolution : RequestID=4435dab8-84bd-4c7f-8b85-2b0d056f13ab : Executing ImportSolutionRequest f
or ImportSolutionToCrm duration=00:00:36.6999661 ExceptionMessage = Code: InternalServerError
Content: DataflowModelActor_DataflowModelAndMeatadataNotConsistent
Code: InternalServerError
Content: DataflowModelActor_DataflowModelAndMeatadataNotConsistent
At ImportSolution.ps1:56 char:1
+ Import-CrmSolution -conn $CrmSourceDestinationString -SolutionFilePat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Import-CrmSolution
When going to site https://make.powerapps.com/ to my environment where I am trying to import solution, I can check the history and I see there failed import requests:
Error code