Our team encounter issues with import and publish because we have a single 6MB unmanaged solution. A 6MB CRM solution is considering a very big solution. Depends on the hardware, it took us more than an hour to import and then another hour to publish (Apparently we didn’t have hardware that are beefy enough for the job). I just want to write down the things that we did to resolve the issues just in case I run into it again. This is also for people who are running into the issues.
Break the solution into smaller solutions : Since we have a 6MB unmanaged solution, we need to break it into smaller packages so the import and publish can be faster. At this moment, we are breaking our solution into smaller unmanaged solutions. So how should we break the big solution? After learning from our colleagues and friends, we split our solution into 5 smaller solutions. Here’s what we did:
We are going to package our solution into managed solution. The recommendation we received is to break the solution into smaller managed solutions. Because managed solution is smaller because it only contains the delta customizations. The table below will shows the customizations included in the file when you package the solution.
Component
Export
Import Behavior
Entity
Delta
Attributes
Forms
Views
Full
Overwritten
Charts
Web Resources
Isolated
Reports
Processes
Global Option Sets
Security Roles
Field Security Profile
Site Map
Application Ribbon
Change the timeout value: Out of the box CRM timeout values are too short for a big solution, it’ll timeout/hang. Below are the things that you can do. Thanks Alok from our team for the detail step by step instructions.
Registry Settings
Web.Config File
MSCRM_CONFIG Settings
USE MSCRM_CONFIGGOUPDATE DeploymentProperties SET IntColumn=9000 WHERE ColumnName='SqlCommandTimeout'
Do an IIS Reset after you complete all of the steps above.
I hope this helps you in your CRM project.