Discussions
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Unexpected behavior on findSublistLineWithValue()
We have a script running on the Sales Order that utilises the `findSublistLineWithValue()` function. This function was returning results correctly until last week. However, since last week, the script has not been functioning as expected.
Upon troubleshooting, we identified that `findSublistLineWithValue()` is returning -1 even when there is a valid result in the sublist. We also noticed that this issue began occurring after the recent release. Specifically, the problem arises on the Production account, which has completed the 2026.1 release, while there are no issues on the Sandbox account, which is still running version 2025.2.
Additionally, we have encountered the same problem in another account that has also completed the release. However, I have not found any specific updates related to this function in the release notes.