Error: One or more parameter values were invalid: some AttributeDefinitions are not used

Answered by Rafal Wilinski
Solution
An error appearing when trying to create a table with a AttributeDefinitions argument containing unnecessary and unused Attribute definitions. Since DynamoDB is schemaless you don't have to and you shouldn't specify attributes for non-key attributes.
Per AWS Documentation:
AttributeDefinitions - An array of attributes that describe the key schema for the table and indexes.
Solution: Don't include any non-key attribute definitions in AttributeDefinitions. Include only Attributes used by the table index or other Global or Local secondary indexes.
Other Common DynamoDB Errors (with Solutions)
- dynamodb index does not exist
- dynamodb docker unable to open database file
- Unable to start DynamoDB Local process
- ConfigError: Missing region in config
- dynamodb put item not working
- DynamoDB Not Supported Requires @DynamoDBTyped Or @DynamoDBTypeConverted
- Error retrieving DynamoDB table item validation exception
- DynamoDB query is slow
- DynamoDB Delete Not Working
- DynamoDB Internal Server Error
- dynamodb unknown error
- DynamoDB Query Limit Not Working
- CORS Error DynamoDB
- dynamodb throughput error
- dynamodb unable to locate property for key attribute
Login to the AWS Console less. Use Dynobase.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase