When I copy and pasted some expressions today, it introduced all these errors in yellow that are actually quite challenging to delete. You have to tab, enter, basically isolate them, then go delete them individually. There's is no "paste as text only" option and somehow this "U+200B" unicode comes through in the paste. When I try to run it says invalid token or invalid variable assignment.
I originally copied the attribute expression I made in the Arcade attribute expression window and pasted into a Wiki Page in Teams originally
(I left my computer for too long without saving my map and Map Viewer refused to save after that, so I quick copy pasted to the nearest place so I didn't lose all my work)....
Then tried to copy from the Wiki Page in Teams to Attribute Expressions window but it appears that was a bad idea When I copy and paste from another attribute expression window, it does not appear to repeat this behavior, nor does it repeat this behavior when I copy paste from Notebook. There's an "Adjust Settings" link in the error pop up... but it disappears before I can click on it. I'm sure the solution could be just don't copy paste code from Teams... but wondering if anyone else sees this error... or it's just the universe telling me to go home for the day? Then again... why wouldn't I be able to copy paste code from anywhere? Any why is it pasting "invisible" characters?? 😛
Maybe there could be a "paste as text" only option? Would that solve it?
Teresa Blader
Olmsted County GIS Specialist