i'm trying to get a list of all Customer records in my account. there are quite a few. i'm using a pageSize of 500. after awhile, i get an Unexpected Error. sometimes this happens after about 18,000 records; sometimes after 29,000.
is there a better way of getting a list of customers? i realize there's a lot of data being transferred. all i really need is the internal ids. any ideas?
here's the soap response:
<?xml version="1.0" encoding="utf-8" ?>
- <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>
- <documentInfo xmlns="urn:messages_2_5.platform.webservices.netsuite.com">
<nsId>****</nsId>
</documentInfo>
</soapenv:Header>
- <soapenv:Body>
- <searchNextResponse xmlns="urn:messages_2_5.platform.webservices.netsuite.com">
- <searchResult xmlns="urn:core_2_5.platform.webservices.netsuite.com">
- <status isSuccess="false">
- <statusDetail type="ERROR">
<code>UNEXPECTED_ERROR</code>
<message>An unexpected error occurred.</message>
</statusDetail>
</status>
</searchResult>
</searchNextResponse>
</soapenv:Body>
</soapenv:Envelope>