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 query is slow
- DynamoDB Error 413
- dynamodb could not instantiate class
- error dynamodb streams must be enabled on the table
- dynamodb condition does not exist
- dynamodb the parameter cannot be converted to a numeric value NaN
- dynamodb request is missing authentication token
- DynamoDB Query Limit Not Working
- dynamodb unable to parse base64 string
- dynamodb could not connect to the endpoint url
- localstack dynamodb not working
- failed to list tables not authorized dynamodb
- DynamoDB Is Not Null
- dynamodb unable to execute http request
- dynamodb cannot read properties of undefined
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase