Error: aws.dynamodb.converter.unmarshall not working
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)
- AWS DynamoDB Provisioning Error
- com amazonaws services dynamodbv2 model resourcenotfoundexception
- dynamodb connection timeout
- sls dynamodb install not working
- Unable to start DynamoDB Local process
- dynamodb net scan condition or not working
- dynamodb list_append if_not_exists not working
- One or more parameter values were invalid: some AttributeDefinitions are not used
- aws lambda dynamodb nodejs not working after few puts
- DynamoDB table not updating
- why is the GSI dynamodb not showing item count
- DynamoDB batch write is not working
- dynamodb-admin command not found
- cannot find module 'dynamodb-doc'
- DynamoDB stream not working
Spend less time in the AWS console, use Dynobase.
Try 7-day free trial. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2023 Dynobase