Q: I'm getting an SSS_INVALID_SUBLIST_OPERATION error that it failed to update/transform record because of an invalid sublist or non-existent line item. How can I fix this?
A:
Note: This is using SuiteScript 1.0.
- In NetSuite, set your Celigo Realtime Import Restlet Runner log level to Debug. Go to Customization Tab > Scripting > Scripts.
- Look for Celigo Realtime Import Restlet Runner, then click the View link.
- Filter on Restlet type. Click the Deployments tab, then click the Celigo Realtime Import Restlet Runner again.
- Click the Edit link.
- Set log level to Debug, then Save.
- Click the Execution Log tab to view the debug log.
- In the Execution Log, click Remove All to clear the log, then re-run the flow for which you wanted to get the debug log to view it here.
- To try to reproduce errors you receive from nlapi debug logs, open Script debugger from Customization > Scripting. Click the here link to log in. This will help you track down invalid sublist errors within a large block of code - it will strip out lines of code and try to rerun it to track down which code is causing an issue. You can also step through the code.
- Select API version 1.0 in the Script Debugger.
- Paste your script in the top window, then click the Debug Existing button. This will execute the code server-side. Be very careful, as this will behave the same as if you ran the flow, but it’s very helpful for debugging.
- Alternately, you can enter r=nlapiCreateRecord(...) OR r=nlapiLoadRecord(...) in your browser, but note that this will run it client-side and not server-side, so not all errors may be reported.
- Try adding mappings for: celigo_nlobjTransformRecordType and celigo_nlobjTransformId. According to NetSuite, transformType is the internal ID name of the record you are transforming the existing record into. It is a required string data type. transformId is the internalId of the record, such as 555 or 78.