<?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: Truncate Table/Non-versioned FC/stand alone script and in Pro ERROR 160592 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1078809#M43298</link>
    <description>&lt;P&gt;While you are waiting, you should file a bug report&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 17:38:24 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-07-14T17:38:24Z</dc:date>
    <item>
      <title>Truncate Table/Non-versioned FC/stand alone script and in Pro ERROR 160592</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1078790#M43295</link>
      <description>&lt;P&gt;I have a script that performs a truncate and append on a feature class in an enterprise gdb. The feature class is&amp;nbsp;&lt;STRONG&gt;not&amp;nbsp;&lt;/STRONG&gt;in a feature dataset, it is&amp;nbsp;&lt;STRONG&gt;not&amp;nbsp;&lt;/STRONG&gt;versioned, and it is&amp;nbsp;&lt;STRONG&gt;not&amp;nbsp;&lt;/STRONG&gt;open in any map/catalog session. It does feed a map service hosted on Portal. I stop the map service before attempting the truncate.&lt;/P&gt;&lt;P&gt;The error&amp;nbsp;"160592: Truncation not allowed while editing." is thrown when running the script (python 3.7) or when running truncate table within ArcGIS Pro. This error does not occur when running in ArcMap (I have not tried in a stand alone script python 2.7). I have tried using the Editor class to start and stop and edit session before running the truncate, thinking it might do the trick, but no luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a hunch this is caused by ArcGIS Pro's "always in an edit session" feature. Has anyone else experienced this, found a work around, or have any ideas of other things to check/try? Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 17:17:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1078790#M43295</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-14T17:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table/Non-versioned FC/stand alone script and in Pro ERROR 160592</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1078797#M43296</link>
      <description>&lt;P&gt;No known solution .... from here&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/160001-170000/tool-errors-and-warnings-160576-160600-160592.htm" target="_blank"&gt;160592: Truncation not allowed while editing.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Other errors on Tech Support around Truncate Table suggest to use Delete rows instead.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 17:27:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1078797#M43296</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-07-14T17:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table/Non-versioned FC/stand alone script and in Pro ERROR 160592</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1078801#M43297</link>
      <description>&lt;P&gt;I've reverted to delete rows for now, but truncate would be preferred for speed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 17:29:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1078801#M43297</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-14T17:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table/Non-versioned FC/stand alone script and in Pro ERROR 160592</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1078809#M43298</link>
      <description>&lt;P&gt;While you are waiting, you should file a bug report&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 17:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1078809#M43298</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-07-14T17:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table/Non-versioned FC/stand alone script and in Pro ERROR 160592</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1081012#M43519</link>
      <description>&lt;P&gt;Esri just confirmed truncate table does not work with feature class that participate in a composite relationship class and therefore, it also does not work with feature classes that have attachments enabled (by default, enabling attachments creates a composite relationship class). Simple relationship classes are supported.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 19:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1081012#M43519</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-07-20T19:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table/Non-versioned FC/stand alone script and in Pro ERROR 160592</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1107270#M46658</link>
      <description>&lt;P&gt;This actually is supported.&amp;nbsp; When Feature Class contains attachments, you need to use an arcpy.ad.Editor to do certain edit operations (even if it is not versioned).&amp;nbsp; So to have this work:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; edit = arcpy.da.Editor(SDE_workspace)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; edit.startEditing(False, True) # (or whatever scenario you are comfortable with)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; arcpy.TruncateTable_management(feature_class)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; edit.stopEditing(True)&lt;/P&gt;&lt;P&gt;# and it works!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 19:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1107270#M46658</guid>
      <dc:creator>DavidTillberg_community</dc:creator>
      <dc:date>2021-10-13T19:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table/Non-versioned FC/stand alone script and in Pro ERROR 160592</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1679013#M101338</link>
      <description>&lt;P&gt;This workaround does not work with File Geodatabases...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jan 2026 15:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-non-versioned-fc-stand-alone-script/m-p/1679013#M101338</guid>
      <dc:creator>James_Whitacre_PGC</dc:creator>
      <dc:date>2026-01-21T15:38:16Z</dc:date>
    </item>
  </channel>
</rss>

