Waiting for report generation
Use WaitForExecuteReport to continue waiting for the report to generate after sending an ExecuteReport request and receiving a Pending status. For example, when an ExecuteReport request has a WaitTime of 2 seconds and the response indicates that the report status is Pending, a client can send WaitForExecuteReport to keep waiting for report generation beyond the specified wait time of 2 seconds.
WaitForExecuteReport waits until either the first page generates or the report is complete, depending on whether the user enables progressive viewing. If the report uses progressive viewing, the user can cancel after the first page generates. Otherwise, the user cannot cancel until the entire report completes. To avoid performance issues, the Factory service deletes the report from the queue if it takes too long to generate.
The WaitForExecuteReport request uses the ConnectionHandle and ObjectId from the ExecuteReport response.
<SOAP-ENV:Header>
<AuthId>9FY0JssYijJI5XvkJqDOPBOoWPbgRak20wIZIFDUa</AuthId>
<Locale>en_us</Locale>
<ConnectionHandle>RYEMWxKREsxq0mQCiXCZHB8NiLDFwq1Q=
</ConnectionHandle>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<WaitForExecuteReport>
<ObjectId>435</ObjectId>
</WaitForExecuteReport>
</SOAP-ENV:Body>
The WaitForExecuteReport response returns the ObjectId of the requested report, the status of the request, and the output file type.
<SOAP-ENV:Header>
<ConnectionHandle>RYEMWxKREsxq0mQCiXCZHB8NiLDFwq1Q=
</ConnectionHandle>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<WaitForExecuteReportResponse>
<Status>Done</Status>
<OutputFileType>RPTDOCUMENT</OutputFileType>
<ObjectId>435</ObjectId>
</WaitForExecuteReportResponse>
</SOAP-ENV:Body>
If progressive viewing is enabled, the response returns a status of FirstPage and the wait period ends.