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!
Empty page in result of searchMoreWithId call
I've encountered an issue with integration with SuiteTalk API. We import some records (Inventory Items) with `search` call and subsequent `searchMoreWithId` calls. We provide conditions to `search` call and receive `search_id` in response. The search result may be large so we fetch every page of result with separate `searchMoreWithId` call specifying both `searchId` and `pageIndex`.
The issue is some calls of `searchMoreWithId` return empty list of records.
Example of such response with empty page:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2016_2.platform.webservices.netsuite.com"> <platformMsgs:nsId>WEBSERVICES...</platformMsgs:nsId> </platformMsgs:documentInfo> </soapenv:Header> <soapenv:Body> <searchMoreWithIdResponse xmlns="urn:messages_2016_2.platform.webservices.netsuite.com"> <platformCore:searchResult xmlns:platformCore="urn:core_2016_2.platform.webservices.netsuite.com"> <platformCore:status isSuccess="true"/> <platformCore:totalRecords>98852</platformCore:totalRecords> <platformCore:pageSize>10</platformCore:pageSize> <platformCore:totalPages>9886</platformCore:totalPages> <platformCore:pageIndex>66</platformCore:pageIndex> <platformCore:searchId>WEBSERVICES_...</platformCore:searchId> <platformCore:recordList/> </platformCore:searchResult> </searchMoreWithIdResponse> </soapenv:Body> </soapenv:Envelope>
Tagged:
1