Using Parse Path to Variable in Calculate Field

458
3
Jump to solution
08-05-2022 12:22 PM
JohnDavidson
New Contributor III

Trying to use the PPName field in calculate field, but it errors each time.

JohnDavidson_1-1659727058739.png

I had added %PPName% in the calculate field code box for Arcade. Is there something else I need to be able to do to be able to add this value to the fields when calculating.?

 

 

0 Kudos
1 Solution

Accepted Solutions
DuncanHornby
MVP Notable Contributor

This cross posting has been answered on GIS stack exchange here.

View solution in original post

0 Kudos
3 Replies
JohnDavidson
New Contributor III

For some additional context someone had mentioned that I had not added the PPName variable as a precondition to the Calculate field. I did make that change

2022-08-06_10-17-11.jpg

2022-08-06_10-16-08.jpg2022-08-06_10-15-39.jpg

0 Kudos
DuncanHornby
MVP Notable Contributor

This cross posting has been answered on GIS stack exchange here.

0 Kudos
JohnDavidson
New Contributor III

@DuncanHornby provided the solution on GIS Stack Exchange

1. Make PPName a precondition of of the Calculate Field

2. Update the calculate field expression to be "%PPName%"

Note: In this instance using the double quote will pass the variable and make it a text field which is passed through as a defined value. You must make sure that the double quotes are used when working with a text field