Hi all,
Context: I have a workbench that is aggregating and compiling data from 13 different SDEs. The datasets are managed slightly different source-by-source. I determine adds, updates and deletes via a CRC comparison, but there are feature classes (not all, some) that are participating in editor tracking. There are two different possibilities for the pertinent editor tracking field: MODIFY_DATE and last_edited_date. Sometimes, both of these fields exist in a feature class, with one being associated to esri's editor tracking.
Objective: I want to use the arcpy method, describe, to pull the editor tracking field name. Based on that result, I want to filter features on 1) if they have editor tracking enabled, then 2) between MODIFY_DATE and last_edited_date.
Method: I have a private parameter python (named editorTracking) script as follows:
import fme
import fmeobjects
import arcpy
def processFeature(feature):
desc = arcpy.Describe(feature.getAttribute(pathway))
if desc.editorTrackingEnabled:
if desc.editedAtFieldName == "MODIFY_DATE":
return "1"
elif desc.editedAtFieldName == "last_edited_date":
return "2"
Variable 'pathway' is assigned earlier in the workbench. It's the absolute path to the feature class, required for the Describe method. I have a test filter that is set with two outputs: 1) if editorTracking (private parameter python script) = 1 2) if editorTracking = 2
I am not getting any type of filtering through this method. I do not know if the test filter and a private parameter python script operate together in this manner. Does anyone have some feedback on my methodology here?
Thanks.