Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
Intermittent nlobjSearchFilter error...
We have a script that automatically creates a task each time an email is sent-- (it records the template used so we can't simply use the 'message' records).
Anyway, I keep getting the error:
Error: SSS_INVALID_SRCH_OPERATOR
An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: company.
The error comes from this code:
newfilters[1] = new nlobjSearchFilter('company',null,'anyof',messageentity);
var newsearchresults = nlapiSearchRecord('contact', null, newfilters, null); //CREATING A Search RESULT OBJECT
I seem to still get the error when I use nlobjSearchFilter('company',null,'is',messageentity);
and the error seems to be intermittent (only a few times a day when many emails are being sent. Any ideas what could be going on?