Upgrading Plug-ins to CRM 2013 that use SYSTEM Impersonation

Upgrading Plug-ins to CRM 2013 that use SYSTEM Impersonation

Insights from: Mark Pitts (Senior Software Developer)

​When upgrading plug-ins to CRM 2013, plug-in originally registered to run under the 'SYSTEM(Disabled)' context, will fail with the error

"systemuser With Id = 4ed7588c-6176-4c91-aa19-2e22c6480237 Does Not Exist".

It is unclear where the GUID came from, because it didn't exist in the system user table.

You won't be able to fix it directly from the CRM Explorer in Visual Studio.

Steps to Resolve:

  1. From Visual Studio, open the file crmregister.register.
  2. Make note of every instance of "ImpersonatingUserId="4ed7588c-6176-4c91-aa19-2e22c6480237".
  3. Remove every occurrence and save the file.
  4. Temporarily re-deploy all plug-ins.
  5. Refresh CRM Explorer. ​
  6.  Now you can use CRM Explorer to re-point at the 'SYSTEM(Disabled)' user for impersonating.

CRM Technical Tip