Select to view content in your preferred language

merge tool does not overwrite in model builder

933
5
08-15-2024 11:14 AM
Labels (3)
Anne-MarieDubois
Frequent Contributor

Hi,

I've this model builder :

AnneMarieDubois_0-1723745612347.png

It works if I run it from the builder window but if I run it as a tool, I always get an error saying that the feature class from the merge tool already exists and that there can't be 2 fc with the same name.

AnneMarieDubois_1-1723745735881.png

 

However, my ArcGIS Pro options are set to overwrite AND if I try the merge tool alone (with the same output name), it works.

What's the problem?

Thanks!

5 Replies
Robert_LeClair
Esri Esteemed Contributor

There is a webpage for Error 002852 - 002852: <Value>: <Value> exists within geodatabase as <value>. A feature class name can only exist o... - question for you, does the output from ModelBuilder go into a Feature Dataset?

0 Kudos
Matt-Goodman
Frequent Contributor

I'm noticing this exact same behavior, using ArcGIS Pro 3.6. My output is not going to a feature dataset.

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

Questions:  what type of geodatabase are you using?  File or Enterprise?  Also are you using the in_memory workspace at all?

0 Kudos
Matt-Goodman
Frequent Contributor

Input is from an enterprise geodatabase but output is a file geodatabase. Not doing any geoprocessing in-memory.

0 Kudos
Robert_LeClair
Esri Esteemed Contributor

Thank you for the response.  There's an older Support case about this item that was resolved by the customer disconnecting the locks on their enterprise geodatabase by navigating  to the Catalog Pane, right-clicking on the feature class being overwritten, locks and disconnect.  Then the customer was able to overwrite the layer.  

0 Kudos