Error: could not unmarshal the value dynamodb

Answered by Rafal Wilinski
What's Causing This Error
The DynamoDB unmarshal function can only accept an object (with data the structure of DynamoDB). Therefore, if you try to pass an array of these objects into the unmarshal function, it will throw an error.
Solution: Here's How To Resolve It
To resolve the error, iterate through the array of DynamoDB objects and "unmarshall" each object individually, as shown below.
const items = [
{
uId: { S: '123456789' },
date: { S: '09-06-2022' }
}
];
const unmarshalled = items.map((i) => aws.dynamodb.converter.unmarshall(i));
Other Common DynamoDB Errors (with Solutions)
- failed to begin subsegment named 'amazondynamodbv2': segment cannot be found.
- DynamoDB Get not found
- dynamodb does not support null values
- dynamodb list_append returns true but does not work
- ImportError: No module named boto3 (DynamoDB)
- aws.dynamodb.converter.unmarshall not working
- DynamoDB ConditionalCheckFailedException
- DynamoDB Mapper Could Not Instantiate Class
- Boto3 DynamoDB KeyError
- com amazonaws services dynamodbv2 model resourcenotfoundexception
- DynamoDB Update Not Working
- DynamoDB Failed To Compute Node presentation
- dynamodb does not accept empty set
- DynamoDB error 400
- dynamodb unknown error
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase