I am trying to use the PPName field in Calculate Field, but it errors each time.

enter image description here

I had added %PPName% in the calculate field code box for Arcade.

Is there something else I need to do to be able to add this value to a field when processing a Calculate Field Process?

It specifically says that it is not defined.

=== UPDATE ===

Per the suggestion of Hornbydd I added the %PPName% as a precondition of the calculate field process. Below are the errors and images showing the changes. enter image description here enter image description here

Error Message

enter image description here

  • Make PPName a precondition to the Calculate Field tool to ensure the Parse Path tool runs before the Calculate field tool.
    – Hornbydd
    Aug 6 at 1:21
  • I went through and followed your suggestion and still got an error - I have added comments to my original post for your review
    – John D
    Aug 6 at 14:18
  • 1
    If PPName is text then enclose your inline substitution in double quotes so calculate is "%PPNAME%".
    – Hornbydd
    Aug 6 at 18:05
  • Hornbydd - that was the solution. Thank you!
    – John D
    Aug 8 at 13:18


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.