ArcPy RefreshCatalog() function for ArcGIS Pro

596
1
08-21-2023 01:49 AM
Status: Open
Labels (1)
Clubdebambos
Occasional Contributor III

ArcPy for ArcMap has a RefreshCatalog() function as per Esri documentation.

Can this function be made available for ArcGIS Pro?

1 Comment
Michele_Hosking

Yes please. It's so dumb that we can't do this anymore.  I have a python script.  It grabs attributes from one layer and updates the attribute tables of a bunch of other layers.  I have this script in a geoprocessing tool and it runs as a task.  It all works but requires the user to go to List by Data Source, find the right data connection (we have data from an enterprise geodatabase version, a different enterprise geodatabase, portal services and image services - so heaps of data source connections) and then right click and choose Refresh.

We are using tasks because most of these people aren't GIS people.  GIS is a small part of their job and this palaver is confusing - even though we have attempted to explain how as part of the task.

The major problem with this when the next task is run it's looking for attributes that were updated in the previous task but since ArcPro refuses to acknowledge that these actually have been changed this next task doesn't work unless above palaver is executed. So frustrating.

With all I've read Pro is supposed to update itself when things change if the script is run from inside ArcPro. I'm not referencing the data directly in our enterprise geodatabase from the script, I'm finding and using the layers from the pro project itself and I thought that would allow pro to know something had changed and refresh itself but it doesn't.

I can't even put it in as a hidden task as I found suggested.... somewhere on the interweb.... this simply doesn't work. 

This is a major annoyance.  Please can we get this sorted soon?