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 the parameter cannot be converted to a numeric value NaN
- DynamoDB validation error
- localstack dynamodb not working
- dynamodb value cannot be null. (parameter 'type')
- DynamoDB GetItem no item
- dynamodb index does not exist
- error retrieving dynamodb table item serializationexception
- dynamodb local could not load credentials from any providers
- dynamodb could not load credentials from any providers
- DynamoDB no attribute schema defined
- dynamodb local unable to open database file
- dynamodb no range key value present
- moto dynamodb not working
- DynamoDB FilterExpression not working
- DynamoDB consistent read not working
Tired of switching accounts and regions? Use Dynobase.
First 7 days are. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase