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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
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