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!
unexpected error exception while searching customers
hi,
I'm trying to search a Customer by SalesOrder number, but I'm getting "An unexpected error occurred.". Order number is ok, I can search by it fine.
What is the reason for the error?
Here is the .net code:
string Id = "182"; CustomerSearch cs = new CustomerSearch(); cs.transactionJoin = new TransactionSearchBasic(); cs.transactionJoin.tranId = new SearchStringField(); cs.transactionJoin.tranId.@operator = SearchStringFieldOperator.@is; cs.transactionJoin.tranId.operatorSpecified = true; cs.transactionJoin.tranId.searchValue = Id; SearchResult sr; sr = nsService.search(cs);
0