<?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>topic Re: SDE feature class attributes updated with Python script not displaying in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297083#M12888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;Yes, I am using arcpy.da.Editor and arcpy.da.UpdateCursor.&amp;nbsp; And earlier in the code I use arcpy.ChangeVersion_management to set the specific version of the data that I am editing, and I also called arcpy.CreateDatabaseConnection_management to set a connection specifically for that version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2018 14:14:35 GMT</pubDate>
    <dc:creator>LeeBrannon1</dc:creator>
    <dc:date>2018-07-27T14:14:35Z</dc:date>
    <item>
      <title>SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297081#M12886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Python script tool runs from the geoprocessing pane in ArcGIS Pro 2.2, and what it does is create a new point in an SDE feature class and populate&amp;nbsp; attributes.&amp;nbsp; You could say that it is working, but the problem is that the new attributes for the point do not display in the attribute table &lt;SPAN style="text-decoration: underline;"&gt;until&lt;/SPAN&gt; I perform more editing (manual, not via the script) on that feature class.&amp;nbsp; The new attributes need to be seen immediately after the script ends.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use an edit session in arcpy (my SDE feature class is versioned) and within that I do an update cursor for the new attributes.&amp;nbsp; But somehow there seems to be a delay with edits being committed or the row getting updated or the edit session being saved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 19:37:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297081#M12886</guid>
      <dc:creator>LeeBrannon1</dc:creator>
      <dc:date>2018-07-26T19:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297082#M12887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;are you using the Editor within arcpy?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/editor.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/data-access/editor.htm"&gt;Editor—Data Access module | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 23:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297082#M12887</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-26T23:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297083#M12888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;Yes, I am using arcpy.da.Editor and arcpy.da.UpdateCursor.&amp;nbsp; And earlier in the code I use arcpy.ChangeVersion_management to set the specific version of the data that I am editing, and I also called arcpy.CreateDatabaseConnection_management to set a connection specifically for that version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 14:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297083#M12888</guid>
      <dc:creator>LeeBrannon1</dc:creator>
      <dc:date>2018-07-27T14:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297084#M12889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a sort of similar case where the solution was to "Disable Caching" on the layer in question: Right Click layer in TOC, Properties, Cache....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 16:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297084#M12889</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2018-07-27T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297085#M12890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas, good suggestion, I tried it but it didn't change anything.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 18:19:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297085#M12890</guid>
      <dc:creator>LeeBrannon1</dc:creator>
      <dc:date>2018-07-27T18:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297086#M12891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your script tool have a normal output parameter, or use a derived output parameter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 19:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297086#M12891</guid>
      <dc:creator>DrewFlater</dc:creator>
      <dc:date>2018-07-27T19:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297087#M12892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No output parameter that I am aware of, although I'm a little confused by the question.&amp;nbsp; The script tool updates data and then ends, no further processing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 21:10:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297087#M12892</guid>
      <dc:creator>LeeBrannon1</dc:creator>
      <dc:date>2018-07-27T21:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297088#M12893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could this problem be related to my using a feature layer as the input to the Update Cursor (within the edit session)?&amp;nbsp; Would it behave better if I used the original SDE feature class instead?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason that I use a feature layer instead of the actual feature class is because I had to change the version of the database, and that tool required a feature layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 21:15:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297088#M12893</guid>
      <dc:creator>LeeBrannon1</dc:creator>
      <dc:date>2018-07-27T21:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297089#M12894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it working!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The feature layer idea wasn't it at all...still using the feature layer, but what did work was actually very simple.&amp;nbsp; At the very end of my script, which is immediately after the StopEditing(True) statement, I added a Try/Except statement - where I added code to change the SDE database connection back to the Default version - since I was finished editing anyway.&amp;nbsp; &amp;nbsp;Maybe it just needed some code at the end to help the edit session complete and the SDE database to refresh, and the specific code I gave it really didn't matter what that was.&amp;nbsp; I'm not sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 23:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/297089#M12894</guid>
      <dc:creator>LeeBrannon1</dc:creator>
      <dc:date>2018-07-27T23:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/1081076#M43540</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/304212"&gt;@LeeBrannon1&lt;/a&gt;&amp;nbsp; Hi Brannon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am building a script tool using changeversion, have you ever try to create a dropdown list of all the versions in a default.sde?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 21:07:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/1081076#M43540</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-20T21:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: SDE feature class attributes updated with Python script not displaying</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/1081087#M43541</link>
      <description>&lt;P&gt;No, I have not tried to create a dropdown list of sde versions.&amp;nbsp; My experience with changeversion is limited to just the script tool that was the subject of this post.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 21:37:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/sde-feature-class-attributes-updated-with-python/m-p/1081087#M43541</guid>
      <dc:creator>LeeBrannon1</dc:creator>
      <dc:date>2021-07-20T21:37:30Z</dc:date>
    </item>
  </channel>
</rss>

