Hello Everyone, I am transforming the sales order ...
# suitecommerce
r
Hello Everyone, I am transforming the sales order into Invoice record through Map/Reduce script but during transformation it shows this error "{"type":"error.SuiteScriptError","name":"DATE_EXPECTED","message":"You entered 'null' into a field where a calendar date was expected.\\nPlease go back and change this value to the correct date.". Can you let me know why this error is coming? Thanks in advance.
s
The error is pretty self-explanatory -- your new record has a required field on it that requires a date and you didn't set one
r
No required field is there I double cross checked it
Hi @Steve Goldberg
I want to implement Server Side cookies on SuiteCommerce Advanced version. Anyone have idea how to implement it. I have to set in HTTP header.This cookie must be set by the HTTP ‘Set-Cookie’ header and NOT by JavaScript.
s
I’m assuming you’re referring to something like a response from a service call, in which case you’ll need to use something like
context.response.setHeader({name: 'Set-Cookie', value: 'asd=zxc; path=/'})