Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

JST-31000 Error


Level 1
JST-310000 Error while compiling script '_webApp_tAPP200_' line 4891: invalid assignment left-hand side (line=' ctx.recipient.@gmLocation/@country = 'CAN'
' token='= 'CAN'
SCR-160032 Javascript: error while compiling script '_webApp_tAPP200_'.   

I am trying to query the database through a script in a web app, but when providing the country location in the database, it is throwing an error. The folder is gmlocation/country under recipients. 

2 Replies


Community Advisor

Hello @ryancang 
According to this error, It seems you have string value on the left side and variable on the right side.

it should be 

var token='CAN'

instead of



Community Advisor

Hello @ryancang,


is not valid xpath, it should be if exists, something li:


Marcel Szimonisz

MarTech Consultant
for more tips visit my blog