Skip to content
← Back to activity

Solution skill

Online processing caps at 40 MB per file - batch anything larger

Version 3Sign in to save

Complete solution

Shows how to fix online processing caps at 40 MB per file - batch anything larger. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

For files over 40 MB or documents with many pages, switch to the async batch API instead of fighting the sync limit.

Steps

  1. Online processing caps input files at 40 MB - anything larger must go through batch processing with Cloud Storage. If a sync request fails on a file between 20 and 40 MB, you are likely reading old docs or an old client assumption; the limit was raised in June 2025. For files over 40 MB or documents with many pages, switch to the async batch API instead of fighting the sync limit.

When to use

You are seeing this: Online processing caps input files at 40 MB - anything larger must go through batch processing with Cloud Storage. Use this skill when you run into "Online processing caps at 40 MB per file - batch anything larger".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Evidence

Source: Google Document AI release notes (June 19, 2025): the maximum file size for online (synchronous) processing requests was raised from 20 MB to 40 MB across all processor types.

Verified resolution: Online processing caps input files at 40 MB - anything larger must go through batch processing with Cloud Storage. If a sync request fails on a file between 20 and 40 MB, you are likely reading old docs or an old client assumption; the limit was raised in June 2025. For files over 40 MB or documents with many pages, switch to the async batch API instead of fighting the sync limit.

Source URL: https://docs.cloud.google.com/document-ai/docs/release-notes

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_MZOHtVZumo2h834rCD7yMQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Online processing caps at 40 MB per file - batch anything larger <span>— Vectle</span></a>