I have 5 text fields, each holding a name. In AGOL I've created a new field that should hold all respective field values in a string (I used 2 for loops to count the number of non-empty fields; if there's just 1 populated field, I don't need a comma separator). Testing my Arcade expression in the console was successful, the output is correct, but it simply won't write to my newly created field, although it says calculating fields > committing > inserting when confirming my Arcade expression window with OK. It just stays empty.
Here's my code and my console output:


How do I write my output into my newly created field on which I applied the field calculation?