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.
Consistent error message regardless of record type. Is this a bug or some code change I'm not aware of?Thanks.-Steve