Select to view content in your preferred language

Now getting Error 001217: Invalid editor tracking field in dataset

791
1
12-07-2023 04:49 PM
ReubenWolff
Emerging Contributor

I have been getting the Error 001217: Invalid editor tracking field in dataset when using the arcpy.EnableEditorTracking_management(dataset, creatorField1,creationDateField1, editorField1, editDateField1) ever since the latest ArcGIS online update. I believe it has something to do with the 2 date fields. These fields are now high precision fields. Could this be the reason? The code I've been using to enable editing has been working fine for a few years now.

Thank you

1 Reply
HeatherBell
Frequent Contributor

I'm not using Python but have a similar issue which I believe is related to this bug: https://support.esri.com/en-us/bug/when-a-layer-from-arcgis-online-is-exported-to-a-geodat-bug-00016... 

When trying to republish a layer and activate editor tracking again, the date fields cannot be used under editor tracking due to error 001217, but they also cannot be deleted or thier properties edited either - it would be quite easy to republish the layer without realising that the date fields are not recording any changes. I resolved this in ArcGIS Pro by using the 'convert temporal field' tool. I converted first to text, and then converted again to date. Then I deleted the old fields (which could not be deleted under 'fields') by exporting to a new feature class, and then renaming them during the export. 

I hope this helps someone else!

 

convert temporal fields.pngeditor fields error.png

GIS Analyst @ The Rivers Trust
0 Kudos