Expression is not valid outside of WITH/ENDWITH (Error 1940)

You can use an expression of the form .property=some_value only within a WITH ... ENDWITH construct.