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 query not returning the full item
- DynamoDB Not Supported Requires @DynamoDBTyped Or @DynamoDBTypeConverted
- sls dynamodb install not working
- dynamodb problem function call failed
- dynamodb unable to locate property for key attribute
- DynamoDB string set cannot be empty
- Could not connect to the endpoint URL https:dynamodb.singapore.amazonaws.com
- dynamodb: one or more parameter values were invalid: type mismatch for index key
- DynamoDB is not showing all columns
- DynamoDB throttling error
- DynamoDB string set may not be empty
- dynamodb cannot read property '0' of undefined
- DynamoDB could not invoke null on class
- DynamoDB failedbatch retry
- DynamoDB no attribute schema defined
Tired of switching accounts and regions? Use Dynobase.
First 7 days are on us. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase