Error: dynamodb list_append returns true but does not work

Answered by Rafal Wilinski
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 consistent read not working
- dynamodb index not found
- dynamodb query is not null
- can't pickle thread.lock objects typeerror boto3 python dynamodb
- a socket operation was attempted to an unreachable network dynamodb
- dynamodb global secondary index does not project
- DynamoDB Update Not Working
- dynamodb unable to parse base64 string
- dynamodb could not connect to the endpoint url
- DynamoDB No Regionendpoint Or Serviceurl Configured
- DynamoDB TTL Not Working
- dynamodb property projection cannot be empty
- DynamoDB scan filter expression not working
- dynamodb local unable to open database file
- accessdeniedexception dynamodb
Better DynamoDB experience.
Try 7-day free trial. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase