I had recently worked with a customer that was running into errors when trying to import a solution into some of their organizations. The solution import would fail with the following error message.
Entity Relationships goal_DuplicateBaseRecord Failure 0x80044150 Object reference not set to an instance of an object.
This goal_DuplicateBaseRecord relationship would exist in the source organization, but not the target organizations which caused this exception. We found that this relationship will be created if the duplicate detection had been toggled on and off within the goal entity. Once the relationship exists you will only be able to import that organizations solution into other orgs which the relationship exists.
After working with the support team we found that the goal_DuplicateBaseRecord relationship should exist on the Goal entity by default since it had Duplicate Detection enabled. This has been logged as an issue and will be fixed in one of the future updates.
If you are seeing this issue you can complete these steps to create the missing relationship.
1. Open the organization which you are getting the error message and go to Settings–Customizations-Customize the System.
2. Expand Entities and click on the Goal Entity.
3. Within the Goal properties UnSelect Duplicate Detection and Click Save.
4. Now Select Duplicate Detection to enable the feature and Click Save Again. This process will create the missing relationship to the DuplicateRecordBase table.
If you review the 1:N Relationships the missing relationships will now show up after the setting was toggled. You will now be able to import the solution without receiving the error message.
Before (Missing Relationships):
After (Relationships Created):
Please leave a comment if you found this post helpful and if it resolved the issue you were facing.
Microsoft Premier Field Engineer
Thank you, I was experiencing the same issue and this helped me tremendously.
Nope this did not help. Got a new error now. goalrollupquery_DuplicateBaseRecord
This did the trick! Useful tip, many thanks.