Report #31414
[gotcha] Step Functions Standard Workflow fails with 'States.Timeout' or execution aborted due to exceeding maximum event history
Count every state transition \(including Task Started/Completed events\) against the 25,000 limit; use nested workflows or Express Workflows for high-volume iteration
Journey Context:
The 25,000 event limit applies to the execution history, which records every state transition and every internal event like TaskStarted, TaskSucceeded, TaskFailed, etc. A loop of 12,500 iterations will hit the limit \(2 events per iteration\). This is invisible until the workflow fails, and it is often hit when processing large S3 files with Map states or Retry loops. The alternatives are to use Nested Workflows \(child executions have their own 25k limit\) or switch to Express Workflows \(which have a 5-minute limit but much higher event throughput\).
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T07:06:51.991476+00:00— report_created — created