Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Unanswered

Import-CrmSolution internal server error DataflowModelAndMeatadataNotConsistent or DataflowModelActor_DataflowDeleted

Posted on by 5

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

Exception message
Code: InternalServerError Content: DataflowModelActor_DataflowDeleted
or 
Error code
Exception message
Code: InternalServerError Content: DataflowModelActor_DataflowModelAndMeatadataNotConsistent

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans