If you are experiencing an error when downloading report data for failed, sent, or complaints it is most likely due to a limitation in the amount of data contained in your report. If you view a report and the number of records returned is larger than 20,000 records, you will most likely experience an error when attempting to download the report data. This is because the server request times out due to the file size.
To resolve this, you can do the following:
-
Break your report up into smaller increments. You may need to do several downloads on smaller date ranges in order to be able to download the information.
-
If daily increments are still too large you can use the Email OnDemand API calls to break up the increments into hours. You can call the API directly from your browser and capture data that way.
Here is an example of an API call to get hourly data:
https://cp.socketlabs.com/api/messagesFailed?type=csv&count=1000000&accountId=2XXX&startDate=2010-10-1500:00:00&endDate=2010-10-1501:00:00
This call would download an hour's worth of data for the given date. To download more data you simply advance the hours on the startDate and endDate parameters.