It would be so much easier if we could just have an arcpy command to do the refresh that is required. Please?
@Michele_Hosking I think that'd be worth looking into as a separate ArcPy function for refreshing the data source but is outside the scope of this current idea discussion. Could you please log a separate idea for your request? This way it can be properly tracked and allows other users to express their support for your idea.
Yes ok - but it's kind of not outside this idea discussion. The idea was for a replacement for the RefreshCatalog() command from ArcMap - which did all this just fine.
I am having this same issue. I have a python script that does joins to a feature class that the user has in the map. The feature class is registered as Traditionally Versioned. I have found no successful way to refresh the layer in the user's map view other than the user manually right clicking on the database and refreshing it in their map. arcpy.RefreshLayer() does not work on versioned data. The old ArcMap version of our toolbox used the RefreshCatalog() function. We really need the equivalent of a RefreshDataSource or something in ArcGIS Pro to get the same functionality.