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)
- Error retrieving DynamoDB table item validation exception
- DynamoDB ConditionalCheckFailedException
- DynamoDB Auto Scaling Not Working
- DynamoDB FilterExpression Not Working
- DynamoDB Local Missing Authentication Token
- DynamoDB Failed To Compute Node presentation
- DynamoDB - The Security Token Included In The Request Is Invalid
- dynamodb could not instantiate class
- dynamodb autoscaling not fast enough
- an expression attribute name used in the document path is not defined
- dynamodb property projection cannot be empty
- Error ValidationException: One or more parameter values were invalid: Type mismatch for key X expected: S actual: M
- error retrieving dynamodb table item serializationexception
- dynamodb net scan condition or not working
- DynamoDB Delete Not Working
Better DynamoDB experience.
Try 7-day free trial. No credit card needed.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase