Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to 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>