Slack Notes – Sep 6 2019
Error –
“Cannot find default value for object” when try to submit order using Commerce API
The module that using in extension’s model is SC.Models.Init and using the order object from that module
not able to track the source of the error since the logs only say Code: UNEXPECTED_ERROR\nDetails: TypeError: Cannot find default value for object.
Solution – Probably just missing something basic. For example,check whether JSON.stringify() or JSON.parse() are added on SuiteScript objects before using them .
It might also be possible the error is coming from a user event SuiteScript that is associated with a sales order.