﻿# Textract asynchronous results have a retrieval window

Preserve Textract asynchronous OCR results within the documented retrieval window, separating JobId, completion notification, block pagination and customer-managed output storage.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/guide-textract-job-result-seven-day-window/
Language: en

## Track the retrieval window from job initialization

The [Textract asynchronous workflow guide](https://docs.aws.amazon.com/textract/latest/dg/api-async.html) says results can be retrieved only up to 7 days from job initialization. The [GetDocumentTextDetection API](https://docs.aws.amazon.com/textract/latest/APIReference/API_GetDocumentTextDetection.html) likewise limits JobId validity. A proposed scheduler should therefore preserve initiation time and schedule result collection independently of how long a downstream reviewer takes. A completed-job row in an application database does not extend the service's result availability, and a delayed user interaction should not be the first attempt to obtain the output.

## Keep completion notification separate from the result payload

The [StartDocumentTextDetection API](https://docs.aws.amazon.com/textract/latest/APIReference/API_StartDocumentTextDetection.html) returns JobId and can publish completion status to the configured SNS topic. That notification identifies an outcome; the Get method retrieves the OCR blocks. An editorial ingestion record should distinguish received notification, started retrieval and durably captured results. A notification message retained for later processing does not itself contain the complete document analysis, so acknowledging it should not silently mark all OCR text as safely stored.

## Follow block pagination rather than document-page assumptions

GetDocumentTextDetection returns PAGE, LINE and WORD blocks with relationships. MaxResults limits returned blocks, and NextToken continues a truncated response. A document page and an API result page are therefore different units. A proposed collector follows continuation until complete and preserves block identifiers and relationships across responses. Keeping only the initial result can lose words or relationships even when the top-level document metadata looks plausible and the job status indicates successful processing.

## Interpret partial success and warnings explicitly

The Get contract distinguishes IN_PROGRESS, SUCCEEDED, FAILED and PARTIAL_SUCCESS and exposes warnings. Transport success alone does not establish complete text detection for every document page. A proposed preservation manifest records status, warnings, document metadata and the detection model version alongside the collected blocks. It should retain the difference between an unavailable historical result and a result that was captured successfully but contained page-level processing limitations.

## Choose an output-storage contract deliberately

The workflow guide describes default internal result storage and the OutputConfig option for writing to a customer-selected S3 bucket. The start API exposes that configuration explicitly. Customer output still needs its own access, encryption and retention policy; it does not imply unlimited availability by itself. [Document provenance](/journal/document-markdown-json-provenance/) connects OCR output to its input and processing identity, while [contract fixtures](/journal/provider-golden-contract-fixtures/) can cover expired handles and truncated block responses without submitting any real documents. This profile performs no OCR request.
