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
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.
0