Error: AWS Lambda DynamoDB Stream Error

Answered by Rafal Wilinski
Last updated: October 23rd, 2026
Solution
A Lambda DynamoDB stream error can come from event-source configuration, missing permissions or a failing handler. Lambda retries records according to the mapping settings; retries are not unlimited protection against data loss because stream records expire.
- Check the event source mapping state and LastProcessingResult, the current stream ARN and the function's CloudWatch logs.
- Verify stream-read permissions and the configured stream view. REMOVE records have no NewImage; INSERT records have no OldImage.
- Enable ReportBatchItemFailures and return the sequence number of the first failed record. Returning the object alone has no effect unless the mapping enables it.
- Configure BisectBatchOnFunctionError, bounded retries, a maximum record age and an on-failure destination. Monitor IteratorAge and function errors.
// Return from the handler after catching a record-processing failure.
return {
batchItemFailures: [{ itemIdentifier: record.dynamodb.SequenceNumber }],
};Make processing idempotent because batches can be delivered more than once. Records are retained for 24 hours, and a bad batch can block progress on the affected shard. On-failure destinations help retain evidence or payloads according to the destination type. Sending records to SQS, including FIFO, does not by itself guarantee exactly-once application side effects.
See stream handling and full examples and AWS documentation.
Partial batch response documentation covers checkpoint behavior.
Other Common DynamoDB Errors (with Solutions)
- dynamodb unable to locate property for key attribute
- dynamodb put item not working
- moto dynamodb not working
- Error ValidationException: One or more parameter values were invalid: Type mismatch for key X expected: S actual: M
- DynamoDB Delete Not Working
- dynamodb mapper save not persisting
- Unable to start DynamoDB Local process
- DynamoDB Get not found
- DynamoDB sorting is not supported for scan expressions
- AWS CLI DynamoDB Error Parsing Parameter
- DynamoDB scan filter expression not working
- dynamodb atomic counter not working
- DynamoDB Is Not Null
- DynamoDB Network Error: self signed certificate in chain
- dynamodb query key condition not supported
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today