Select to view content in your preferred language

Keep Feature Service Editor Tracking Data when using clone_items()

496
0
07-12-2023 11:28 PM
alex_mapintel
New Contributor III

When using the clone_items() to clone a feature service from 1 agol account to another, ensure that Editor tracking attributes are not reset. Using something like

 

agol_dest.content.clone_items(items,copy_data=True)

 

currently resets the EditDate, CreationDate, Creator and Editor attributes in the destination AGOL feature service. They are set to the user that ran the clone_items() command and the date/time when the command was executed - which looses all edit tracking data.

The clone_items() function is not keeping the integrity of the data and honoring the concept of a "clone" i.e. "one that appears to be a copy of an original form.". Resulting in poor data tracking and more time spent post processing.