The process of converting entities to managed solution fails if you have custom attributemaps.
The error you get is similar to the following.
Found 1 dependency records where unmanaged component is the parent of a managed component. First record (dependentcomponentobjectid = 6d680c43-f66c-e111-a4d0-005056b20fcf, type = AttributeMap, requiredcomponentobjectid = 58765635-f66c-e111-a4d0-005056b20fcf, type= EntityMap, solution = 559bf67b-6e7a-4b68-a4a2-efa4b8fffdd1).
This scenario can happen after you upgrade from CRM 4.0 to CRM 2011 and you have your ISV solution in CRM 4 that you now want to be a managed solution in CRM 2011.Consider this scenario:
You have a system with entity E3 and entity E4
Entity E3 is the parent of entity E4
The N:1 relationship contains an attribute mapping between the name fields
If you first install this solution as unmanaged, and then try to install it as a managed solution the conversion to managed solution fails on the dependency check
With an error simular to this:
Found 1 dependency records where unmanaged component is the parent of a managed component. First record (dependentcomponentobjectid = 6d680c43-f66c-e111-a4d0-005056b20fcf, type = AttributeMap, requiredcomponentobjectid = 58765635-f66c-e111-a4d0-005056b20fcf, type= EntityMap, solution = 559bf67b-6e7a-4b68-a4a2-efa4b8fffdd1).
To reproduce the issue take the following steps:Step 1: import the unmanaged solution and publish all.
Step 2: delete the solution,(not the entities) so you can import the managed solution.
step 3: import the managed solution.
Result: This fails. (Before Rollup 6 it works)
Solution 1
If you remove the attribute mappings from the managed solution the import works in your environment.
Drawback: If you want to continue to install new versions of you managed solution in to the target system it will fail if you have attributemappings in the managed solution.
Solution 2
Remove the custom attributemaps in the target system from the entities you want to convert to managed.
Import the managed solution without your custom attributemaps.
Edit the solution.xml in you managed_solution.zip file to comment out the extra attributemaps and then create a new
manages_solution.zip
Select overwrite customization
Drawback: You need to know some XML and be careful!
It is a great website.. The Design looks very good.. Keep working like that!. bet9ja mobile
ReplyDeleteuseful information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b!.. hellcat
ReplyDeleteThis is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value. Im glad to have found this post as its such an interesting one! I am always on the lookout for quality posts and articles so i suppose im lucky to have found this! I hope you will be adding more in the future... FXGM login
ReplyDelete