Budy Sutjijati
11/18/2021, 5:39 PM--begin-message---
Syntax error in ?eval-ed string in line 1, column 8:
Encountered "ipsum", but was expecting one of:
".."
Why is NetSuite supplying the text “ipsum” at all during the template validation and more importantly how can I solve this issue?
Part of the code where the validator seems to have a problem with all of a sudden can be seen below. FYI, the custbody would be filled with a JSON string.
<#assign customrecord = record.custbody_rfi_tax_split_object?eval/>
David B
11/18/2021, 9:39 PMrecord.custbody_rfi_tax_split_object
is guaranteed to be a stringified JSON, then you can use ?eval
and ignore the template error.
HOWEVER, please read carefully the warning in the Freemarker docs for ?eval: if the JSON is coming from an untrusted/non-secure source, the ?eval
can be used as an attack vectorBudy Sutjijati
11/23/2021, 6:35 AM