How long is it taking to complete?
Could be a timeout perhaps.
The query takes less than 2 minutes to complete (depending on the time range specified). I repeatedly poll qryGetStatus until it reaches 100%. However, once I call qryExecuteDetail immediately after that to retrieve the results, we hit the internal IO error. So it doesn't seem like a timeout issue.
Where can we view the logs?