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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Workaround for RCRD_DSNT_EXIST in a response to item search needed
Hello all
We use item search in our SuiteTalk-based extension, and for one of customer's databases, this search fails with RCRD_DSNT_EXIST. The code is
ItemSearch itemSearch = new ItemSearch(); ItemSearchBasic itemSearchBasic = new ItemSearchBasic(); itemSearchBasic.setIsInactive( new SearchBooleanField( new Boolean( false ) ) ); itemSearch.setBasic( itemSearchBasic ); SearchResult itemSearchResult = myExecutor.getPort().search( itemSearch ); if( itemSearchResult != null && itemSearchResult.getStatus().length > 0 ){ // error status logging goes here }
and for one of customer's databases, this code results in
02/29/2016 09:00:05 GMT ERROR: search(itemSearch) - status details: 02/29/2016 09:00:05 GMT Code=RCRD_DSNT_EXIST 02/29/2016 09:00:05 GMT Message=That record does not exist. 02/29/2016 09:00:05 GMT Type=ERROR
This code is simple and straightforward.
0