Hi, I have come across an issue with the "Truncate Table" geoprocessing tool (arcpy as well).
The error, "Truncation not allowed while editing" 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.
After some investigations, I have found a possible cause for this error, which may be an AttributeRule. 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.
Is this a bug in the Truncate table tool? Or is there any workaround?
Thanks in advance for your advice.
