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 list_append returns true but does not work
- dynamodb local unable to open database file
- dynamodb query not returning the full item
- dynamodb cannot create preexisting table
- CORS Error DynamoDB
- dynamodb does not accept empty set
- ValidationException: Invalid KeyConditionExpression: Attribute name is a reserved keyword;
- DynamoDB Delete Not Working
- AWS Lambda DynamoDB Stream Error
- DynamoDB Invalid UpdateExpression Syntax Error Token
- DynamoDB ConditionalCheckFailedException
- One or more parameter values were invalid: some AttributeDefinitions are not used
- dynamodb converter not found for enhancedtype
- DynamoDB Local Docker Not Working
- DynamoDB - The Security Token Included In The Request Is Invalid
Spend less time in the AWS console, use Dynobase.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase