Error: aws.dynamodb.converter.unmarshall not working

Answered by Rafal Wilinski
What's Causing This Error
This error commonly occurs when you provide an array to the "unmarshall" function. This is because the "unmarshall" function only accepts a DynamoDB object. Therefore, if an array of DynamoDB objects are provided, 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)
- missing required key 'key' in params dynamodb
- failed to list tables not authorized dynamodb
- dynamodb getItem() is not a function
- com amazonaws services dynamodbv2 model resourcenotfoundexception
- dynamodb local unable to open database file
- DynamoDB stream no records processed
- DynamoDB batch write is not working
- DynamoDB error 400
- dynamodb put item not working
- DynamoDB scan filter expression not working
- Error retrieving DynamoDB table item validation exception
- DynamoDB Query Limit Not Working
- Could not connect to the endpoint URL https:dynamodb.singapore.amazonaws.com
- Unable to start DynamoDB Local process
- DynamoDB Is Not Null
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase