Select to view content in your preferred language

Model Builder: using Get Field Value in Calculate Field

104
1
yesterday
CarsonMorton
Frequent Contributor

Quick explanation of my end goal: I have two features selected, on on layer A and one on layer B. This tool should only affect the two features, and not the entire layer. I want a couple specific field values from feature A to be analyzed. If they meet criteria, the corresponding fields on Feature B will have their values set to match. I am using Model Builder

I am using Get Field Value to get the value. I have plugged that into Calculate Field in the following ways and gotten these errors:

  • expression = Error: "Invalid Arcade expression, Arcade error: Semicolon or new line expected"
  • code block = Error: "Invalid Arcade expression, Arcade error: Object not found String"
  • going into the code block and changing String (what it added by default when choosing code block) to %String% or %"String"% = Error: "Invalid Arcade expression, Arcade error: Identifier expected"
  • going in and using "%String%" = fills the field with %String%
  • going in and using %CustomerName% (what i renamed the output of Get Field Value) = 
  • "Invalid Arcade expression, Arcade error: Semicolon or new line expected"

I've tried a few other things that I found on the internet. nothing has worked.

1 Reply
DanPatterson
MVP Esteemed Contributor

Examples of using ModelBuilder utilities—ArcGIS Pro | Documentation

see the example and perhaps show the expression you were trying to build


... sort of retired...
0 Kudos