Search This Blog

Wednesday, April 4, 2018

Couldn’t import a Custom Control Default Config for ObjectTypeCode 10022 because its 'customcontroldefaultconfigid' already exists on the system.

Couldn’t import a Custom Control Default Config for ObjectTypeCode 10022 because its 'customcontroldefaultconfigid' already exists on the system.

Solution:

Solution:1

  • Extract the solution file and open the customization.xml file 
  • Remove the content/subnode tag in the "CustomControlDefaultConfigs" node <CustomControlDefaultConfigs> </CustomControlDefaultConfigs>
  • save the file and zip it and import again in the CRM.
Solution:2

  • Use the script below to find the oldest duplicated records on CustomControlDefaultConfigBase
select PrimaryEntityTypeCode, min(CreatedOn) oldest from CustomControlDefaultConfigBase
where PrimaryEntityTypeCode in (select PrimaryEntityTypeCode from CustomControlDefaultConfigBase group by PrimaryEntityTypeCode having count(1) >1) group by
PrimaryEntityTypeCode

  • Delete these records and export the solution again (managed or unmanaged)
  • Try to import it on the new environment

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.