unexpected error usually means you've done somethi...
# suitescript
c
unexpected error usually means you've done something incorrectly (user error) since it can't even give you the actual error details. Would probably have to see the code to give you any direction
v
var redSearch = search.load({ id : 'customsearch_fa_black' }); log.debug('redsearch',redSearch); var redSearchRunCount = redSearch.runPaged(); log.debug('redcount',redSearchRunCount);
this is where the error is
s
does the error go away if you comment out your
log.debug()
calls?
r
Do you know the record type of the search? There are certain saved searches that you need to supply the type explicitly. They call this standalone search type. Check out the description of the type parameter in this page - https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/section_4345775360.html#search.load(options)
v
the saved search has the summary .is that the problem?