AnsweredAssumed Answered

Overwrite/Delete of feature classes in geodatabase fails because of an existing lock

Question asked by mgoetza on May 5, 2015
Latest reply on May 6, 2015 by sephefox


I created a model that works like you can see in the picture. I am running an iteration over a field value and want to create a geometric network for each output of the iteration and some operations after it. To do this I always want to copy the needed feature classes to a new geodatabase. The reason why I do this is because otherwise I always have to select the participating feature classes for the geometric network manually.

Now, the problem is that the iteration fails after the first run because the feature classes in the new geodatabase cannot be overwritten. There is an existing lock because they are still part of the geometric network of the former iteration step that still exists. How can I remove this lock or overwrite/delete the feature classes or geometric network in the new geodatabase in each iteration step?

Thanks for your help,