Select to view content in your preferred language

Enhance Append Tool to Allow Python/Arcade Expressions for Unmapped Fields

2053
14
07-26-2022 06:33 AM
Status: Under Consideration
Labels (1)
feralcatcolonist_old
Occasional Contributor II

Enhance the Append Tool's functionality by allowing users to utilize Python or Arcade expressions to fill in output fields that do not have a 1:1 match between the two data sets.

 

Example:

Many exploratory data analysis feature classes start from source data with their own attribution. In the process of analysis, an individual may add/remove some fields but otherwise keep the data similar. One workflow is to then append additional records from the source data, selecting "use the field map to reconcile field differences" is useful to just add the new data, but then the user has to go into the table, highlight the newly added records and then run field calculations for each of the new columns their analysis dataset might have.

Or a different example, you have two datasets that are similar, but one is missing some relevant individualized fields-- --or has the same data in incompatible fields (it has a string and you need a numeric). You can create these fields easily enough with a field calculation expression and should be able to do this at the point of entry within the append tool.

The enhancement would look this, for a field(s) you could write in expressions to fill out the data programmatically as it uploads to your established dataset.

feralcatcolonist_2-1658842159966.png

 

 

14 Comments
JonathanNeal
Status changed to: Closed

@Bud Yeah because the number is too large. Doubles and DateTimes are 64-bit and can hold a large value than the Long data type.

For trivia night, there is also %t%, %n%, and %v% (%i% is legacy replaced by %n%).

We are seeing this as a duplicate of https://community.esri.com/t5/arcgis-pro-ideas/enhance-append-tool-to-allow-python-arcade/idi-p/1195... will link it in our internal tracking.

Our thought on how you can accomplish this now is to use the Enable Editor Tracking tool. The field will automatically generate a Creation Date Field.

Secondly, maybe you can use the Calculate Fields 3.1+ tool. We enabled a where clause that can fill in the timestamp on empty field values in a pre/post processing step?

Example input:

datetime.strptime('%t%', '%yyyy%MM%dd%HH%mm%ss')

 

Doc link: https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/enable-editor-tracking.htm

JonathanNeal
Status changed to: Closed
MargaretCrawford
Status changed to: Under Consideration

I have marked this idea as Under Consideration because adding arcade expressions is part of our long-term plan of changes we would like to make to the field map.