For a starting point, try commenting out:
json = webiRep.updateExpressionInAxis();
and then when the report is saved into the CMS, open Launchpad and try adding the same expression into the Vtable and see if it will allow you or if the syntax needs to be different for [YR]
do you get the same issue for [QUANTITY SOLD] if you comment out the first formula expression?