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)
- Unable to start DynamoDB Local process
- dynamodb items page not authorized with read access
- DynamoDB type item is not supported
- dynamodb connection timeout
- DynamoDB Query Limit Not Working
- dynamodb local shell not working
- One or more parameter values were invalid: some AttributeDefinitions are not used
- dynamodb cannot convert undefined to object
- could not transform a dynamodb amazonserviceexception to a compatible kinesis exception
- DynamoDB Error Message KeyError item is not JSON serializable
- DynamoDB TTL Not Working
- dynamodb does not support null values
- dynamodb could not instantiate class
- why is the GSI dynamodb not showing item count
- dynamodb 1 validation error detected value
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase