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)
- KMS Key Access Denied Error DynamoDB
- DynamoDB ConditionalCheckFailedException
- DynamoDB Network Error: self signed certificate in chain
- dynamodb cannot read properties of undefined
- dynamodb cannot read property 'push' of undefined
- dynamodb unable to locate property for key attribute
- One or more parameter values were invalid: some AttributeDefinitions are not used
- DynamoDB Failed To Compute Node presentation
- failed to list tables not authorized dynamodb
- ExpressionAttributeValues contains invalid value: One or more parameter values were invalid: An AttributeValue may not contain an empty string
- DynamoDB BatchSave not working
- DynamoDB Mapper Could Not Instantiate Class
- DynamoDB scan does not return all items
- dynamodb could not connect to the endpoint url
- AWS DynamoDB CredentialsError: Missing credentials in config
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase