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 Local Cannot Create Preexisting Table
- dynamodb local shell not working
- Conditional Update Error DynamoDB
- accessdeniedexception dynamodb
- dynamodb no range key value present
- dynamodb condition does not exist
- dynamodb the table does not have the specified index
- the dynamodb service does not have version
- dynamodb unable to parse base64 string
- dynamodb localhost not working
- dynamodb attribute does not exist
- dynamodb unable to locate credentials
- error updating dynamodb table time to live
- dynamodb trigger no records processed
- dynamodb system errors metric
Spend less time in the AWS console, use Dynobase.
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase