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 local is not available for stage test
- AWS CLI DynamoDB Error Parsing Parameter
- dynamodb put item not working
- One or more parameter values were invalid: some AttributeDefinitions are not used
- Float types are not supported. Use decimal types instead.
- could not unconvert attribute dynamodb
- comparison operator does not return all attributes dynamodb
- sls dynamodb install not working
- dynamodb cannot convert undefined to object
- dynamodb exclusivestartkey not working
- DynamoDB TTL Not Working
- DynamoDB Local Cannot Create Preexisting Table
- dynamodb table not exists
- DynamoDB Query Limit Not Working
- 'dynamodb' object has no attribute 'table'
Login to the AWS Console less. Use Dynobase.
Try 7-day free trial. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2024 Dynobase