Error: dynamodb does not support null values

Answered by Rafal Wilinski
What's Causing This Error
Earlier, DynamoDB did not allow you to store empty strings or null values in an item. If you do so, DynamoDB will throw an error indicating that it does not support null values.
Solution: Here's How To Resolve It
However, as of 18th May 2020, DynamoDB no longer runs into this error and has introduced support for null values. Although, keep in mind that you may still run into this error if you are trying to store a null value on an attribute that acts as the partition key for the table or GSI.
Other Common DynamoDB Errors (with Solutions)
- DynamoDB Item Does Not Exist
- error dynamodb streams must be enabled on the table
- dynamodb global secondary index not working
- dynamodb query not returning the full item
- sls dynamodb install not working
- dynamodb: one or more parameter values were invalid: type mismatch for index key
- dynamodb ttl not deleting / erasing items
- ImportError: No module named boto3 (DynamoDB)
- DynamoDB TTL Not Working
- DynamoDB could not invoke null on class
- dynamodb unable to locate credentials
- DynamoDB Invalid UpdateExpression Syntax Error Token
- a bytes-like object is required not binary dynamodb
- dynamodb query is null
Spend less time in the AWS console, use Dynobase.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase