CRM Package Deployer Timeout : How to deal with ?
- Published
- Author
- Mattias Liloia
- Reviewed by
- Lloyd Sebag
- Type
- Trick
- Comments
- 2
When working with CRM Package Deployer, it always does an "Upgrade" process while importing a new solution. Please check out this post to find out more about the different solution update processes:
https://dynamics-chronicles.com/article/alm-and-dynamics-365-solutions-explanation
CRM Package Deployer fails with the "DeleteHoldingSolution Timeout" message, if the deletion of the holding solution takes more than 2 minutes. Good news are, there is a way to fix this problem by forcing CRM Package Deployer to do the import in an asynchronous manner. It's documented on the PowerShellGallery page:
https://www.powershellgallery.com/packages/Microsoft.Xrm.Tooling.PackageDeployment.Powershell
In the Importconfig.xml file: Add requiredimportmode as an option to force an async or sync import behavior for a given solution.
<?xml version="1.0" encoding="UTF-8"?>
<configdatastorage xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" installsampledata="false" waitforsampledatatoinstall="false" agentdesktopzipfile="" agentdesktopexename="" crmmigdataimportfile="">
<solutions>
<configsolutionfile solutionpackagefilename="SampleSolutionOne_1_0_managed.zip" requiredimportmode="async" />
</solutions>
</configdatastorage>
Comments 2
Comments were written on the former site and are kept as an archive.
Adi
Hi, You mentioned in above blog that CRM Package Deployer always does an "Upgrade" process while importing a new solution. Even while manually importing, we see that "Upgrade" is the recommended solution action and Maintain customizations is the recommended import action.
1) Does CRM Package Deployer use "Maintain customizations" or "Overwrite customization" option by default?
2) How can we configure "Overwrite customization" while using CRM Package Deployer?Anonymous
This can be configured using "overwriteunmanagedcustomizations" parameter. Please check https://docs.microsoft.com/en-us/power-platform/alm/package-deployer-tool for more details.