Error: dynamodb list_append returns true but does not work
What's Causing This Error
This is not exactly an error but can likely be caused due to a programmer-introduced bug. The list_append()
function accepts two parameters: the initial list and the value to append.
If you provide an empty array to append to it, the function will still execute successfully, but nothing will change in the database, which might make you feel like the function does not work.
Solution: Here's How To Resolve It
To resolve the error, carefully provide the arguments for the function as shown below:
const params = { TableName: 'test-table', UpdateExpression: 'SET users = list_append(:users, newUser)'. ExpressionAttributeValues: { // append an array, as DynamoDB will join the arrays while it saves. newUser: [{name: 'Jake'}] } }
Other Common DynamoDB Errors (with Solutions)
- DynamoDB Delete Method Not Working For The First Time
- dynamodb query key condition not supported
- CORS Error DynamoDB
- AWS CLI DynamoDB Error Parsing Parameter
- could not connect to the endpoint URL dynamodb
- KMS Key Access Denied Error DynamoDB
- failed to list tables not authorized dynamodb
- DynamoDB Delete Not Working
- DynamoDB Key element does not match the schema
- dynamodb list_append if_not_exists not working
- DynamoDB - The Security Token Included In The Request Is Invalid
- cognitoidentitycredentials is not authorized to perform dynamodb describetable
- aws lambda dynamodb nodejs not working after few puts
- com amazonaws services dynamodbv2 model resourcenotfoundexception
Login to the AWS Console less. Use Dynobase.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2023 Dynobase