Tue, 03/01/2022 - 13:23 By Mattias Liloia Contributor Lloyd Sebag
2 comments

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

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?

Wed, 08/31/2022 - 16:48
Adi (not verified)

Add new comment

Image CAPTCHA
Enter the characters shown in the image.