Hello, I am using an ArcGIS Pro Python Toolbox (.pyt) to update lease geometries in an enterprise geodatabase using an edit session and arcpy UpdateCursor. The tool runs successfully and the geometry changes are written to the database, but the updates are not reflected in the map. The changes only appear after reopening ArcGIS Pro or removing and re-adding the layer. I have tried arcpy.RefreshLayer, ClearWorkspaceCache, and even forcing a version reset with ChangeVersion_management, but nothing has worked so far... The same logic works correctly in an ArcGIS Pro Notebook, where updates are visible immediately. Is there a way to force the map to refresh after ArcPy edits on enterprise geodatabase layers ?
Thank you!