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)
- dynamodb cannot read properties of undefined
- DynamoDB Hostname Cannot Be Null
- name key is not defined dynamodb
- DynamoDB Is Unsupported It Cannot Be Instantiated
- dynamodb cannot read property '0' of undefined
- CORS Error DynamoDB
- dynamodb throttle error code
- dynamodb index not updated
- DynamoDB Item Does Not Exist
- dynamodb update fail if not exists
- dynamodb does not accept empty set
- dynamodb not a managed type
- error updating dynamodb table time to live
- boto3 dynamodb unable to locate credentials
- dynamodb trigger no records processed
Dynobase is a Professional GUI Client for DynamoDB
First 7 days are on us. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2023 Dynobase