Select to view content in your preferred language

How to enable tracking fields in AGOL in a hosted feature class

364
5
05-28-2025 11:44 AM
SanchezNuñez
Frequent Contributor

Good afternoon

 

How can I assign tracking to 4 fields in in AGOL in a hosted feature class? created by, modified by, date created and date modified.

thanks

0 Kudos
5 Replies
BobBooth1
Esri Regular Contributor
PandiyanKesavan
Occasional Contributor

Go to published hosted layer setting and enable that.

 

PandiyanKesavan_0-1748461061520.png

 

0 Kudos
SanchezNuñez
Frequent Contributor

When I do that, it adds new fields and what I want it to reuse the ones that were configured as tracking fields in the FGDB

0 Kudos
BobBooth1
Esri Regular Contributor

Looks like there is an ArcGIS Pro GP tool that will let you do that.

https://support.esri.com/en-us/knowledge-base/how-to-edit-or-modify-the-editor-tracking-fields-for-h...

SanchezNuñez
Frequent Contributor

Good morning,

My goal was to copy a feature dataset from SDE to AGOL.  Each feature class in the feature dataset has tracking fields enabled: Create Date, Modified Date, Edited By and Created By.

When I started publishing  these group of layers in ArcGIS, the first time, the tracking fields lost their value, and were replaced by my credentials ( my UserId, and the current date)

Then I realized that there is one option when publishing with ArcGIS Pro called : "Preserve Editor Tracking Information". That solved this issue.

 

Extracted for AI:

“When you publish a layer with ArcGIS Pro and select the "Preserve editor tracking information" option, you are instructing ArcGIS Pro to retain the existing values in the editor tracking fields (such as who created or last edited a feature, and when) from your source data. This means that the original creator and editor names, as well as the creation and last edit dates, will not be overwritten during the publishing process.

If you do not check this option, ArcGIS Pro will update all editor tracking fields to reflect the account you are using to publish the layer and the time of publishing. This effectively resets the editor tracking information so that all features appear to have been created and last edited by the publisher at the time of publishing”.

 

SanchezNuez_1-1748958646922.png

 

 

0 Kudos