megaphone
Update your Profile with your Support type to get your Support Type badge.
Nominate Your Peers for NetSuite Support Community's Choice of the Quarter! Submit your nomination today.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here!
What Topic Should We Cover Next? Your idea could be our next feature—drop your suggestion now!
No Limits. Just possibilities. Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Discover what's next at SuiteConnect Tour 2026.
Try Intelligent Payment Automation – Fee Free For Your First Month For more information, visit this thread.

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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!

2008.1 Script Search giving unexpected error

edited Dec 13, 2019 11:44PM in General 5 comments

I'm on 2008.1 and running nlapiSearchRecord as normally would but it is returning an 'Unexpected Error' every time. I initially thought this may be related to me searching custom records but I tried it on support cases with same error.

Here is a snippet example:

 var filters = new Array();  var columns = new Array();  var results = null;  try {    filters[0] = new nlobjSearchFilter('casenumber', null, 'equalto', 37, null);  } catch(e) { alert('filters: '+e.message); }  try {    columns[0] = new nlobjSearchColumn('title',null);  } catch(e) { alert('columns: '+e.message); }  try {    results = nlapiSearchRecord('supportcase', null, filters, columns);  } catch(e) { alert(e.message); } 


The returned error is:

An unexpected error has occurred. Please click <a href="javascript:window.open('/app/crm/support/nlcorpsupport.nl?l=T&type=bug&ticket=fcw6hznwwhjrk7l88rf8', 'Error','scrollbars=yes,toolbar=no,width=800,height=700');void(0)">here</a> to notify support and provide your contact information.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!

Leaderboard

Community Whiz

Quarter 1 (Jan-Mar 2026)

This Week's Leaders

This Month's Leaders

All Time Leaders