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 stream lambda error
- Error ValidationException: One or more parameter values were invalid: Type mismatch for key X expected: S actual: M
- dynamodb docker unable to open database file
- DynamoDB Errors InvalidSignatureException Signature Expired
- failed to begin subsegment named 'amazondynamodbv2': segment cannot be found.
- DynamoDB Query Limit Not Working
- dynamodb converter not found for enhancedtype
- DynamoDB Item Does Not Exist
- Float types are not supported. Use decimal types instead.
- accessdeniedexception dynamodb
- DynamoDB Mapper Could Not Instantiate Class
- aws.dynamodb.documentclient is not a constructor
- DynamoDB sorting is not supported for scan expressions
- DynamoDB validation error
- DynamoDB throttling error
Better DynamoDB experience.
First 7 days are on us. No strings attached.
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase