Error in runEval condition of if: Invalid Unicode escape sequence

Hi Team,
for some image url to upload, the macro prompts out the
“[error]
Error in runEval condition of if: Invalid Unicode escape sequence”, while the value is
"
C:\Users\Administrator\Desktop\abc\up1.png
"
not sure which character conflict with the program code?

the macro is:

{
“Name”: “file-upload-with-xtype_skip the empty values”,
“CreationDate”: “2019-5-7”,
“Commands”: [
{
“Command”: “csvRead”,
“Target”: “files-upload-with-xtype.csv”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “https://ocr.space/”,
“Value”: “”
},
{
“Command”: “if”,
“Target”: “"${!col1}" != ""”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=imageFile”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${!COL1}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_ENTER}”,
“Value”: “”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “field empty”,
“Value”: “”
},
{
“Command”: “endif”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “link=Start OCR!”,
“Value”: “”
}
]
}

it’s expected to be fixed.

Thanks.

Hi, can you please post your macro with the CODE tags? Then we can copy and paste it from the forum and run it here.

codetag

hi, no problem, here you go:
actually the CODE tag is not so friendly to use, or i don’t know how to make it work as we expected, just click it once, and paste the code there directly, right? i just did it as what i said, as beneath:

{
“Name”: “file-upload-with-xtype_skip the empty values”,
“CreationDate”: “2019-5-10”,
“Commands”: [
{
“Command”: “csvRead”,
“Target”: “files-upload-with-xtype.csv”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “https://ocr.space/”,
“Value”: “”
},
{
“Command”: “if”,
“Target”: “"${!COL1}" != ""”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “id=imageFile”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${!COL1}”,
“Value”: “”
},
{
“Command”: “XType”,
“Target”: “${KEY_ENTER}”,
“Value”: “”
},
{
“Command”: “click”,
“Target”: “link=Start OCR!”,
“Value”: “”
},
{
“Command”: “else”,
“Target”: “”,
“Value”: “”
},
{
“Command”: “echo”,
“Target”: “field empty”,
“Value”: “”
},
{
“Command”: “endif”,
“Target”: “”,
“Value”: “”
}
]
}

it just can’t stay as in the CODE gray background area style, as i can see it in the editor preview, maybe it’s because there’re too many lines, i don’t know, but, i think, you just copy paste it from up to down, then it should be ok to go.

storeEval is now deprecated. Please use the new execute Script command. This will solve this issue.