Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Saved Search works in browser but fails in script?
So I have a Saved Search that runs fine directly in NetSuite, but fails when loaded and run from SuiteScript 2.0...
{ "error": { "type": "error.SuiteScriptError", "name": "SSS_INVALID_SRCH_OPERATOR", "message": "An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: custentity1.", "stack": [ "each(N/searchUtil)", "post(SuiteScripts/jarod_ss2/test-search.js:116)", "<anonymous>(SuiteScripts/jarod_ss2/test-search.js:149)" ], "cause": { "type": "internal error", "code": "SSS_INVALID_SRCH_OPERATOR", "details": "An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: custentity1.", "userEvent": null, "stackTrace": [ "each(N/searchUtil)", "post(SuiteScripts/jarod_ss2/test-search.js:116)", "<anonymous>(SuiteScripts/jarod_ss2/test-search.js:149)" ] }, "id": "" } } 0