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)
- DynamoDB Error All Attributes Must Be Indexed
- DynamoDB Query Limit Not Working
- failed to list tables not authorized dynamodb
- DynamoDB could not invoke null on class
- AWS Lambda DynamoDB Stream Error
- could not unmarshal the value dynamodb
- why is the GSI dynamodb not showing item count
- DynamoDB ValidationException: Query condition missed key schema element
- DynamoDB Invalid UpdateExpression Syntax Error Token
- failed to begin subsegment named 'amazondynamodbv2': segment cannot be found.
- dynamodb getItem() is not a function
- DynamoDB Errors InvalidSignatureException Signature Expired
- DynamoDB Local Cannot Create Preexisting Table
- dynamodb put item not working
- an expression attribute name used in the document path is not defined
Spend less time in the AWS console, use Dynobase.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase