Skip to main content
Open

Facility to Enable and disable feature service editor tracking in AGOL Writers

Related products:Integrations
emeliebostrom
danilo_fme
kennyo
  • emeliebostrom
    emeliebostrom
  • danilo_fme
    danilo_fme
  • kennyo
    kennyo

Hi,

I have noticed if you have editable layer and many peoples are working(and you have enabled edits tracking) then ArcGIS online puts username value in Editors Column .

Problem -

As a admin if you update data in that layer it will update username with your admin account (or account you are currently using) and it will remove existing username (in some cases people want to retain those values specially if data editing is outsourced to different company for billing purpose). So before editing admin need to disable Edit tracking manually in ArcGIS online.There are some other workarounds also to switch off and on (In my case I have used http caller and python). But it will we great if it includes in standard transformers , it will help to build clean workflow as well as easy to automate.

Thanks & regards

Manoj

Forum|alt.badge.img

Hello Manoj, I also have this issue with not wanting to update the last edit date and editor with my information and would benefit from a standard transformer. In the meantime, can you share more details about how you used the http caller and python. I haven't worked with either before. I have FME desktop 2018 and I am working with portal hosted feature services instead of online hosted feature services. I thinking that your process is similar enough that I can apply it.

Kind Regards,

Laura


Forum|alt.badge.img

Sorry, I haven't got any notification about your comment. You still need that?


Forum|alt.badge.img

Hello,

Thank you for your follow up. Yes, I am still looking for a solution.

Laura


Forum|alt.badge.img

Handling Editors tracking for GeoDatabase

 

Sure :).

To enable and disable GDB Editor tracking you need to modify below python script in workbench's scripting --> Startup Python Script

and you need to choose Pyhton Compatibility : Esri ArcGIS Pro 2.1+ (Python 3.6+)

 

Below piece of python will disable editor tracking in GeoDatabase

 

# Disable Editor Tracking

# Import system modules

import arcpy

from arcpy import env

# Set workspace

env.workspace = "Your GDB path"

# Set local variables

in_dataset = "Your table name"

# Disable editor tracking

arcpy.DisableEditorTracking_management(in_dataset)

Below piece of python will enable editor tracking in GeoDatabase

Shutdown Python Script

# Enable Editor Tracking

# Import system modules

import arcpy

from arcpy import env

 

# Set workspace

env.workspace = "Your GDB path"

 

# Set local variables

in_dataset = "Your table name"

 

# Enable editor tracking

arcpy.EnableEditorTracking_management(in_dataset,"created_user","created_date","last_edited_user","last_edited_date")

 

I am not able to attach example work bench for AGOL


Forum|alt.badge.img

I am not able to attach fme workbench. So I will provide a snapshot for enabling and disabling


Forum|alt.badge.img

Can you send me your email id so that I can forward demo workbench to you. I am not able to attach anything here.


Forum|alt.badge.img

@gangwarmanoj Can you please let me know how to determine what my email id is and I will forward that to you.

Laura



Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings