Error in handlebar expression

Hi,

I have custom flow which export customer and order data from FTP server and create Customers and Sales order in NetSuite. In the Sales order import step, an error is thrown related to Shipping cost calculation. Hence I added a mapping for Shipping method using handlebar as

{{#compare ShipToCountry "==" "CANADA"}}10205{{else}}3105{{/compare}}

mapped to Shipping Method(InternalId)

Now the flow throws another errors as

Could not compile handle bar "{{#compare ShipToCountry "==" "CANADA"}}10205{{else}}3105{{/compare}" because "Parse error on line 1: ...else}}3105{{/compare} -----------------------^ Expecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'OPEN_BLOCK_PARAMS', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', 'SEP', got 'INVALID'" .Please correct and retry

My order data look like following

 

Please suggest the soltuion for the issue.

0

Comments

4 comments
Date Votes

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post