Clean up step: Version is currently in use

6657
13
09-19-2014 08:41 AM
AllWeatherHeather
Occasional Contributor

I have a clean up step in one of my workflows and even though ArcMap is closed on the computer and no other users are connected to my data version I am getting the following error. When I look in ArcMap at the Version Manager I do not see any locks. Any idea what I am missing?  
 
 

0 Kudos
13 Replies
TopeBello
Occasional Contributor III

Hi Heather,

What version of ArcGIS Workflow Manager are you on? This issue was resolved in Workflow Manager at a service pack of version 10.0.

Thanks,

Tope

0 Kudos
AllWeatherHeather
Occasional Contributor

I am using Workflow Manager 10.2.2 Build 3239

0 Kudos
TopeBello
Occasional Contributor III

Heather,

I am unable to reproduce this using a workflow that has the following steps - Create Version, Edit Data and Clean Up Version.

In the past we have seen issues if you have complex layers in the map causing the lock to the version maintained beyond need. Can you log a tech support incident on this? I think we will need to troubleshoot this to figure out the source of the problem.

Thanks,

Tope

0 Kudos
AllWeatherHeather
Occasional Contributor

Tope,

I am now seeing this issue on many of my workflows... I will have to create a simple one to do some more testing.

Thanks,
Heather

0 Kudos
TopeBello
Occasional Contributor III

Heather,

Let me know how your tests go. I can also try out a few tests here too. What types of layers do you have in your map? When you get these locks, can you take a look at the task manager to confirm that there are no applications (ArcMap/ArcCatalog) keeping the lock active. 

Thanks,

Tope

0 Kudos
AllWeatherHeather
Occasional Contributor

Tope,

I did some more testing with my workflows and the issue goes away if I close down Workflow Manager and reopen it. Also, if I run each step manually (R-click, Run Step) there are no issues. Do you know if there is a way to pause a workflow? We have custom reconcile and post steps that run before the clean up and I wonder if they haven't completely finished before it tries to delete the job version.

Thanks,

Heather

0 Kudos
TopeBello
Occasional Contributor III

Heather,

You are not able to pause the execution of a step in current version of Workflow Manager. Closing the application doesn't seem like an acceptable work around, unless the steps happen at different times in your workflow. You can try running the steps one at a time (disable auto execute) and then inspect the database locks after each step that you execute in the workflow. This could help narrow down the culprit.

Is your reconcile and post step using the GP tools or did you create a custom step for this? If it is, you can get the developer that created it to debug to ensure there are no locks after completion.

Thanks,

Tope

0 Kudos
AllWeatherHeather
Occasional Contributor

Tope,

I did some more testing and there is a lock on the version that is maintained at the end of our "Custom Reconcile" step and is subsequently unlocked after the "Custom Post Step". Clean Up is in the workflow after this and although the version manager tells me that the version is not locked I get an error that the version cannot be deleted because it is in use. As before, if I close Workflow Manager and relaunch it there is no issue.

Next I will try making a simpler workflow and see if I get the same issue.

Thanks,

Heather

0 Kudos
AllWeatherHeather
Occasional Contributor

Tope,

Can you tell me what the difference is between an error stating "The version is currently in use" and "The operation is not allowed while editing"? I did some testing over the weekend with creating locks on versions and came across these two different error messages.

Thanks,
Heather

0 Kudos