I had a working suitelet and now I am getting an e...
# suitescript
k
I had a working suitelet and now I am getting an error. {"type":"error.SuiteScriptError","name":"SSS_INVALID_SRCH_OPERATOR","message":"An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: internalid.","id":"","stack":["each(N/searchObject)","searchInvoices(/SuiteScripts/logofit_sl_purchasereport.js:1218)","generateForm(/SuiteScripts/logofit_sl_purchasereport.js:330)","onRequest(/SuiteScripts/logofit_sl_purchasereport.js:180)"],"cause":{"type":"internal error","code":"SSS_INVALID_SRCH_OPERATOR","details":"An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: internalid.","userEvent":null,"stackTrace":["each(N/searchObject)","searchInvoices(/SuiteScripts/logofit_sl_purchasereport.js:1218)","generateForm(/SuiteScripts/logofit_sl_purchasereport.js:330)","onRequest(/SuiteScripts/logofit_sl_purchasereport.js:180)"],"notifyOff":false},"notifyOff":false,"userFacing":false} I have not changed any of the custom parameter searches that are going into it . I have attached a copy of the file. This is kind of an emergency and any help will do.
b
find line 1218
inspect the filters going into the search before its run
in particular, you want to check that the value for the internalid filter is valid
a
if no one has edited the code and it previously worked... check to see if someone has edited the search which is conditionally modified to add an internal id filter. its loading this search -
customsearch_nsacs_lf_cprs