Just another interesting observation about the Sharepoint integration to CRM 2011. I have customised the Document Location entities to include some additional fields. My dev environment worked fine. A solution was build and then moved to a vanilla and the import failed with the following:
As this is a Vanilla system, Sharepoint has never been configured. The process of running the Document Management settings ALSO creates N:1 relationships between the Document Locations entity the entity to be enabled for sharepoint.
So, if you are importing a solution that contains the Document Locations entity – ensure the destination system is also setup with the same enabled entities