Select to view content in your preferred language

New Arcade formatting window adds in errors when copying and pasting code... :(

1103
0
11-18-2022 04:58 PM
Labels (2)
Teresa_Blader
Frequent Contributor

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_0-1668818355906.png

Teresa_Blader_1-1668818621197.png

 

 

Teresa Blader
Olmsted County GIS Specialist
0 Replies