Select to view content in your preferred language

Calculate Field is applying to all fields, not just selected field

1112
6
12-18-2023 07:56 AM
NickAddison
Occasional Contributor

Trying to add some Arcade expressions to selected fields. Upon applying the expression, it calculates all the fields within the attribute table to have that expression. Why is it applying to all the fields, and not just the selected field?

0 Kudos
6 Replies
DanPatterson
MVP Esteemed Contributor

The expression and a screen grab of the table might be useful to tracking down the issue.


... sort of retired...
0 Kudos
Amir-Sarrafzadeh-Arasi
Frequent Contributor

Dear Nick,

If you want to do the Arcade expression, you can pass just single Field.

and it will apply the expression on the given field.

Please check the attachment for understading better.

Good luck

EX.png

Amir Sarrafzadeh Arasi
0 Kudos
NickAddison
Occasional Contributor

This is what was applied to Fire_District_Abrev

I don't believe the expression itself is the issue though. Regardless of what expression (the attached or any different expression) is applied to any field, it applies said expression to all the attribute fields and subsequently rewrites any expression that may have been in the other fields.

 

Capture.PNG

0 Kudos
Amir-Sarrafzadeh-Arasi
Frequent Contributor

Dear Nick,

It works fine in mine table.

Please check the attachment.

Good luck

Amir Sarrafzadeh Arasi
0 Kudos
DanPatterson
MVP Esteemed Contributor

It is good that you have Enable Undo active.  So don't save the edits, close the table and see if it is ok.

Did you have any pending unsaved edits prior to using Calculate Field?


... sort of retired...
0 Kudos
CarolineSmith527
New Contributor

I am having this issue as well.

0 Kudos