<?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 geoprocessing tool (arcpy) not work with AttributRule? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1611794#M95544</link>
    <description>&lt;P&gt;Still happens in ArcGIS Pro 3.4 when the feature class has attachments.&amp;nbsp; I doubt it's going to be fixed anytime soon as it's been an issue for over 18 months!&amp;nbsp; The DeleteRows function is a workaround but it's slower than TruncateTable for large (&amp;gt; 10,000 records) datasets.&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2025 22:38:36 GMT</pubDate>
    <dc:creator>Dan_Joyce_OE</dc:creator>
    <dc:date>2025-05-05T22:38:36Z</dc:date>
    <item>
      <title>Truncate Table geoprocessing tool (arcpy) not work with AttributRule?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344216#M74700</link>
      <description>&lt;P&gt;Hi, I have come across an issue with the "&lt;STRONG&gt;Truncate Table&lt;/STRONG&gt;" geoprocessing tool (arcpy as well).&lt;/P&gt;&lt;P&gt;The error, "&lt;STRONG&gt;&lt;EM&gt;Truncation not allowed while editing&lt;/EM&gt;&lt;/STRONG&gt;" came up when I run the tool for a feature class in our organization's enterprise environment. Certainly, I was not activating Edit when the tool gave me the error as per pic below. I have also tried "Append" tool on the same data, and this tool worked fine.&lt;/P&gt;&lt;P&gt;After some investigations, I have found a possible cause for this error, which may be an &lt;STRONG&gt;AttributeRule&lt;/STRONG&gt;. I configured the AttributeRule on a data, and it works totally fine to edit features (add, update, and delete manually as well as Append tool) on this data. What I have found is if AttributeRule is enabled on this data, Truncate Table tool returns the error whereas if AttributeRule is disabled on this data, Truncate Table works as expected.&lt;/P&gt;&lt;P&gt;Is this a bug in the Truncate table tool? Or is there any workaround?&lt;/P&gt;&lt;P&gt;Thanks in advance for your advice.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TTtttTeee_0-1698794075300.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/84639i2BCA57E09A74D717/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TTtttTeee_0-1698794075300.png" alt="TTtttTeee_0-1698794075300.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 23:25:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344216#M74700</guid>
      <dc:creator>TTtttTeee</dc:creator>
      <dc:date>2023-10-31T23:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table geoprocessing tool (arcpy) not work with AttributRule?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344233#M74705</link>
      <description>&lt;P&gt;Did you try Delete Rows (alternate in some situations, to Truncate Table)&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/delete-rows.htm" target="_blank"&gt;Delete Rows (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 01:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344233#M74705</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-11-01T01:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table geoprocessing tool (arcpy) not work with AttributRule?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344240#M74706</link>
      <description>&lt;P&gt;Thank you very much Dan!&lt;/P&gt;&lt;P&gt;I totally forgot the DeleteRows. This does not have any compatibility issue with AttributeRules configuration. Nonetheless, if the error returned by Truncatge Table is a bug, I would like ESRI to fix that up soon in the future.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 02:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344240#M74706</guid>
      <dc:creator>TTtttTeee</dc:creator>
      <dc:date>2023-11-01T02:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table geoprocessing tool (arcpy) not work with AttributRule?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344346#M74716</link>
      <description>&lt;P&gt;I've spoken with ESRI about this very topic actually. The finding is indeed a &lt;A href="https://my.esri.com/#/support/bugs/bugs?bugNumber=BUG-000132811?bugNumber=BUG-000132811&amp;nbsp;" target="_self"&gt;bug&lt;/A&gt;:,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Truncate Table tool fails when the dataset participates in a composite relationship class and in an enterprise geodatabase.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my case, that turns out to be when attachment tables exist. I had never intentionally made a composite relationship class, but that's what "enable attachments" does automatically. Does that sound like your scenario?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 13:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344346#M74716</guid>
      <dc:creator>ZachBodenner</dc:creator>
      <dc:date>2023-11-01T13:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table geoprocessing tool (arcpy) not work with AttributRule?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344705#M74740</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/80456"&gt;@ZachBodenner&lt;/a&gt;&amp;nbsp;, thanks for your attention on this issue.&lt;/P&gt;&lt;P&gt;Thats very good to know that you already reported this issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My case is different from yours. This issue happens only when the AttributeRule is enabled. My AttributeRule establishes some relationships within the rule to achieve what I want.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 21:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1344705#M74740</guid>
      <dc:creator>TTtttTeee</dc:creator>
      <dc:date>2023-11-01T21:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table geoprocessing tool (arcpy) not work with AttributRule?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1607520#M95126</link>
      <description>&lt;P&gt;This is still happening when an Attribute Rule is configured you cannot run the Truncate w/o getting this error. I am so glad I came across this thread because this was making zero sense. I hope this bug gets fixed soon!!!&lt;/P&gt;</description>
      <pubDate>Sat, 19 Apr 2025 22:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1607520#M95126</guid>
      <dc:creator>VanessaSimps</dc:creator>
      <dc:date>2025-04-19T22:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table geoprocessing tool (arcpy) not work with AttributRule?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1611794#M95544</link>
      <description>&lt;P&gt;Still happens in ArcGIS Pro 3.4 when the feature class has attachments.&amp;nbsp; I doubt it's going to be fixed anytime soon as it's been an issue for over 18 months!&amp;nbsp; The DeleteRows function is a workaround but it's slower than TruncateTable for large (&amp;gt; 10,000 records) datasets.&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 22:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1611794#M95544</guid>
      <dc:creator>Dan_Joyce_OE</dc:creator>
      <dc:date>2025-05-05T22:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Truncate Table geoprocessing tool (arcpy) not work with AttributRule?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1658702#M99599</link>
      <description>&lt;P&gt;I wish I could escalate this post to Esri developers. I found the same thing today. I deleted an attribute rule from a feature class and the Truncate Table tool worked as intended. When the feature class had the attribute rule, no matter how many times I saved my edits or the project, I received&amp;nbsp;ERROR 160592: Truncation not allowed while editing.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Oct 2025 13:17:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/truncate-table-geoprocessing-tool-arcpy-not-work/m-p/1658702#M99599</guid>
      <dc:creator>Aaron_Gover</dc:creator>
      <dc:date>2025-10-17T13:17:01Z</dc:date>
    </item>
  </channel>
</rss>

