Hello,
I'm encountering a strange problem. I have a workflow which triggers when an entity is created. It has the following steps.
Step 1: Update the lookup field to link to a record in the Autonumber entity.
Step 2: Set the record number field to the value of the Counter field in the Autonumber entity.
Step 3: Increment the counter field in the Autonumber entity with the value of the Increment By field in the same entity.
I use such workflows as a means of getting an Autonumber. This worked fine until I decided to import my unmanaged solution to another organisation. In this new organisation this workflow throws the following error on Step 1.
Sync workflow 'SP Electrical Autonumber' terminated with error 'systemuser With Id = 1901130da-..... Does Not Exist'
This is odd as I'm creating the entity so the workflow is set to run as the 'The user who made changes to the record' and I've got the System Administrator profile. Further my GUID is different to the above guid and my guid exists in the database. So I'm struggling to understand where its getting this guid from.
I've checked the Autonumber record in the first step using (Select * from Filteredcal_autonumber) and couldnt find the guid in the error message anywhere there too!
So where is it getting this guid and why is it that just this workflow is throwing this error. Other entities use similar workflows for their autonumbers and they seem to work fine. Any ideas? Or places to look would be much appreciated. I've investigated this myself a lot and only posting here as a last resort as I'm really out of ideas.
My next step is to delete the entire workflow and recreate it again and see if this solves the issue. But I still want to know why I'm experiencing this. I'll post back on whether deleting and recreating the workflow solved the issue.
PS. CRM 2013