Hello fine people!
I have a pre-save-page hook on the initial export step from SalesForce via SOQL query. The JS hook does several data transforming steps, one of which is to parse item descriptions so that NetSuite can utilize them properly. This script has functioned flawlessly for many months. An item description, however, happened to come through with a null value which caused an error.
My issue is with how Integrator IO handled the error. The error occurred on 1 record out of an array 8 exported. However, all 8 records were failed and the flow did not execute any subsequent steps for any of them. Although the other 7 were perfectly fine data-wise, they all errored with using the message of the failed record ("TypeError: Cannot read property 'replace' of null").
Question: is this expected behavior? If the pre-save page hook fails on one record, why does it then fail all of them? At the very least, it should not report false errors on the records that are perfectly fine (misleading and causes extra time to troubleshoot).
Thank you so much!
Please sign in to leave a comment.