<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Refresh Datasource arcpy command in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idi-p/1518601</link>
    <description>&lt;P&gt;Please can we have an arcpy command to refresh data sources so changes made via a script run from within ArcGIS Pro updates the data shown in the project.&lt;/P&gt;&lt;P&gt;Needs to work in all circumstances, versioned (all types of versioning), non-versioned, enterprise geodatabase, file geodatabase.&amp;nbsp; And if versioned - working in a version or straight in the default table.&lt;/P&gt;&lt;P&gt;My situations are as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In one case the feature layer is traditionally versioned but I'm working in the default version.&amp;nbsp; I would like to see changes made by me, in the default version via a script running from a toolbox using layers currently in the project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In another case I have already programmatically created a version and changed to it in the project.&amp;nbsp; I am then making changes to layer in the project in that version via a script, from a toolbox. I need the changes to show in the project otherwise scripts that follow on in the process don't work as they are looking for data - that is there - in the data source - but ArcPro does not acknowledge that it is - until the following is manually done:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michele_Hosking_2-1721162944992.png" style="width: 417px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112184iF878343FE5852E1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Michele_Hosking_2-1721162944992.png" alt="Michele_Hosking_2-1721162944992.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is related to (but apparently is not the same as) this idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/arcpy-refreshcatalog-function-for-arcgis-pro/idi-p/1320558#comments" target="_blank" rel="noopener"&gt;ArcPy RefreshCatalog() function for ArcGIS Pro (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also RefreshLayer() does not work on versioned data so this is not a solution.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2024 20:33:42 GMT</pubDate>
    <dc:creator>Michele_Hosking</dc:creator>
    <dc:date>2024-08-12T20:33:42Z</dc:date>
    <item>
      <title>Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idi-p/1518601</link>
      <description>&lt;P&gt;Please can we have an arcpy command to refresh data sources so changes made via a script run from within ArcGIS Pro updates the data shown in the project.&lt;/P&gt;&lt;P&gt;Needs to work in all circumstances, versioned (all types of versioning), non-versioned, enterprise geodatabase, file geodatabase.&amp;nbsp; And if versioned - working in a version or straight in the default table.&lt;/P&gt;&lt;P&gt;My situations are as follows:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In one case the feature layer is traditionally versioned but I'm working in the default version.&amp;nbsp; I would like to see changes made by me, in the default version via a script running from a toolbox using layers currently in the project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In another case I have already programmatically created a version and changed to it in the project.&amp;nbsp; I am then making changes to layer in the project in that version via a script, from a toolbox. I need the changes to show in the project otherwise scripts that follow on in the process don't work as they are looking for data - that is there - in the data source - but ArcPro does not acknowledge that it is - until the following is manually done:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Michele_Hosking_2-1721162944992.png" style="width: 417px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/112184iF878343FE5852E1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Michele_Hosking_2-1721162944992.png" alt="Michele_Hosking_2-1721162944992.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is related to (but apparently is not the same as) this idea:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/arcpy-refreshcatalog-function-for-arcgis-pro/idi-p/1320558#comments" target="_blank" rel="noopener"&gt;ArcPy RefreshCatalog() function for ArcGIS Pro (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also RefreshLayer() does not work on versioned data so this is not a solution.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 20:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idi-p/1518601</guid>
      <dc:creator>Michele_Hosking</dc:creator>
      <dc:date>2024-08-12T20:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1563949#M33070</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;there seems to be an alternative using python.Net : &lt;A href="https://community.esri.com/t5/python-questions/refresh-data-after-python-tool-execution/td-p/173774" target="_blank"&gt;https://community.esri.com/t5/python-questions/refresh-data-after-python-tool-execution/td-p/173774&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I agree that a true arcpy function would be really helpful for GPtools or Toolboxes that update features.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 02:28:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1563949#M33070</guid>
      <dc:creator>PierreloupDucroix</dc:creator>
      <dc:date>2024-12-03T02:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1587787#M33905</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 00:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1587787#M33905</guid>
      <dc:creator>OliviaHughes</dc:creator>
      <dc:date>2025-02-21T00:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1607926#M34560</link>
      <description>&lt;P&gt;Any news regarding this feature? Did you guys find a way to refresh the content of your Enterprise Geodatabases to continue a process that requires the database to be refreshed?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 07:57:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1607926#M34560</guid>
      <dc:creator>pkaniouras</dc:creator>
      <dc:date>2025-04-22T07:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1610196#M34637</link>
      <description>&lt;P&gt;We have found a&amp;nbsp;ridiculous way around this that doesn't work in all circumstances but.... We are running a python script from a toolbox inside a task. And we happen to have some dummy data in a few layers that we had to add for reasons I can't be bothered to go into here. So... the workaround....&lt;/P&gt;&lt;P&gt;We run the script though a command in a task and then as hidden steps in the task we select the dummy data from one of the layers and calculate a field in this layer for the selected features to null (this field for these features are null already). This seems to initiate a refresh of all the data in Pro.&lt;/P&gt;&lt;P&gt;So annoying but at least it's working.... most of the time.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 21:59:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1610196#M34637</guid>
      <dc:creator>Michele_Hosking</dc:creator>
      <dc:date>2025-04-29T21:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1632918#M35522</link>
      <description>&lt;P&gt;This is a needed arcpy function and would like to see Esri take this under consideration. I also have a script tool running from within a task and need a way to refresh the data. We are using tasks to streamline work flows and reduce friction for less experienced GIS users. Currently, we need the user to leave the task and go to the table of contests and refresh the data source or we have to use a clunky work around to force an update.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jul 2025 19:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1632918#M35522</guid>
      <dc:creator>Dennis1</dc:creator>
      <dc:date>2025-07-14T19:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1655831#M36372</link>
      <description>&lt;P&gt;+1... Exactly the same issue down here...&lt;/P&gt;&lt;P&gt;It would be very fine to have such a python method...&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 14:12:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1655831#M36372</guid>
      <dc:creator>rboreux</dc:creator>
      <dc:date>2025-10-07T14:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1657515#M36418</link>
      <description>&lt;P&gt;I'm having the same issue. Using a python script, I've deleted a selection of data. That triggers an Attribute Rule that nulls an attribute on a separate layer. Then I'm trying to run a field calculate that populates the null attribute with a new value. But Pro doesn't recognize the data has changed, and is not selecting the newly null values.&lt;/P&gt;&lt;P&gt;Having a function that replicates the function of this button in Pro would be greatly helpful!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GrantDixon_MGP_0-1760384752601.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/141911i0F21C083F57FDA68/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GrantDixon_MGP_0-1760384752601.png" alt="GrantDixon_MGP_0-1760384752601.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Oct 2025 19:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1657515#M36418</guid>
      <dc:creator>GrantDixon_MGP</dc:creator>
      <dc:date>2025-10-13T19:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1708994#M38585</link>
      <description>&lt;P&gt;I fully support this idea. After a Python gp tool updates data (branched versioned in my case), ArcGIS Pro should automatically refresh the affected layers and map views without requiring workarounds or manual user actions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Implementing a reliable automatic refresh command with arcpy&amp;nbsp;would significantly improve the user experience!&lt;BR /&gt;&lt;/STRONG&gt;As a workaround, since we are using ArcGIS Pro Tasks, we added an automatic&amp;nbsp;&lt;STRONG&gt;hidden&lt;/STRONG&gt; step that perform the version refresh command.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 13:43:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1708994#M38585</guid>
      <dc:creator>Ofir_Mazor</dc:creator>
      <dc:date>2026-06-29T13:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1710845#M38623</link>
      <description>&lt;P&gt;Good afternoon,&lt;/P&gt;&lt;P&gt;Was this reported to support, as this would be a bug. If you're executing a GP tool from Pro the expectation is the tool to properly return the results of the changes and keep Pro's editor in sync with the changes that took place within the tool.&lt;BR /&gt;&lt;BR /&gt;A refresh should not be necessary as the application itself maintains state and a number of caches (feature cache, tile cache) that need to be consistent.&lt;BR /&gt;&lt;BR /&gt;A refresh is only necessary when working with versions when a second session may have modified the version, for example the DEFAULT version. In the case of Pro and when you're working in a version your session holds either a read or write lock that prevents a second session from modifying the version (thus no need to ever need to refresh).&lt;BR /&gt;&lt;BR /&gt;Note: for anyone authoring custom arcpy or calling REST endpoints directly and providing a session_id with the same identity being used in Pro - we will detect the conflicting identity and different session_id values - this is an indication that the initial session holding the lock is now invalid and those edits and locks are purged - this allows the current calling session to obtain the ability to write to the version.&lt;BR /&gt;&lt;BR /&gt;Hopefully this is helpful and you're able to log your issue with support.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 19:45:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1710845#M38623</guid>
      <dc:creator>Thomas_Brown</dc:creator>
      <dc:date>2026-06-29T19:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1710861#M38624</link>
      <description>&lt;P&gt;ESRI people have seen the original idea (linked in my original post) and did not indicate that it was a bug and since I am in New Zealand I can't go directly to ESRI support but have to go through our supplier which frankly I can't be bothered doing.&lt;/P&gt;&lt;P&gt;We have gone down the route of attribute rules now for one of our processes which has taken care of the most bothersome issues but if this is indeed a bug, if someone in the US could log it with ESRI that would be grand.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2026 20:12:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1710861#M38624</guid>
      <dc:creator>Michele_Hosking</dc:creator>
      <dc:date>2026-06-29T20:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh Datasource arcpy command</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1713261#M38656</link>
      <description>&lt;P&gt;I have gone through our organization's ESRI's contacts (Technical Solution Engineer) to try to come up with a solution for this and none of the solutions worked to resolve the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jul 2026 15:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/refresh-datasource-arcpy-command/idc-p/1713261#M38656</guid>
      <dc:creator>OliviaMorris1</dc:creator>
      <dc:date>2026-07-08T15:06:22Z</dc:date>
    </item>
  </channel>
</rss>

