Having backed up a CRM 4.0 Organisation database, and restored it into a CRM 2011 deployment, we attempted to use the "Import Organisation" feature of CRM Deployment Manager to import and upgrade the database.

Stepping through the "Import Organisation" wizard, we got to the "Map users" screen, where we expected to map the Active Directory users from the source deployment to equivalent users within this one. 

At this point, the  import wizard just hung. We waited a few days....still nothing, it was stuck on the same screen.

The install log, crm50dmsnapin.txt, revealed this error:

Exception occurred while mapping usersMicrosoft.Crm.CrmArgumentException: Expected non-empty string. ---> System.ArgumentException: Expected non-empty string.
Parameter name: domainAndAccount


To fix this, we ran the following SQL against the Organisation database we were trying to import:

update systemuserbase
set DomainName = 'domain\user'
where isNull(DomainName, '') = ''




 
We recently came across a cryptic error when trying to deploy a plugin to a CRM solution using the Visual Studio 2010 Solution Template for Dynamcis CRM 2011. The error was:

Error registering plugins and/or workflows. The resource string "ErrorSerializingRegFile" for the "RegisterPlugin" task cannot be found. Confirm that the resource name "ErrorSerializingRegFile" is correctly spelled, and the resource exists in the task's assembly.

Having created the solution, written a couple of plugins, and checked everything in to TFS, we tried to "Deploy":

The solution......check out the file "RegisterFile.crmregister" from the CrmPackage project, so the deployment process can write to it, obviously.