Select to view content in your preferred language

Do geoprocessing models honor edit sessions?

289
2
06-03-2025 07:09 AM
KnoxvilleRegional
Emerging Contributor

I'm pretty certain that geoprocessing models would honor/respect/recognize edit sessions when run in ArcMap. This was handy when updating an Enterprise Geodatabase feature class that is also served on the web. If the geoprocessing model failed part of the way through, you could stop your edit session and choose not to save the edits to return the feature class to the original state. 

Does anyone know if that's true in Pro? I can see this being a challenge because you could have multiple maps, windows and geoprocessing models open at the same time. How does the geoprocessing model know which map it's supposed to be applied to, specifically the map that has the active edit session? My question pertains to running the geoprocessing model in model builder and when opening the model by double clicking it in a toolbox (not in model builder mode). 

I've searched the internet and the help documentation and I can't find any answer. If this isn't possible, are there other routes that can accomplish something similar?

0 Kudos
2 Replies
AyanPalit
Esri Regular Contributor

@KnoxvilleRegional Are you using versioning in your setup? You can explicitly switch to an edit version and perform all your Pro edits and run geoprocessing in the edit version.

Ayan Palit | Principal Consultant Esri
0 Kudos
KnoxvilleRegional
Emerging Contributor

Thanks for the response. I do sometimes use versioned datasets. And I suppose I could run geoprocessing against a version and then delete the version if it fails halfway through. But I also work with file geodatabase where versioning isn't possible. So it would still be good to know if a geoprocessing model runs within the editing environment so I can decide to stop editing without saving edits if something goes awry halfway through the model

0 Kudos