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 GetItem no item
- DynamoDB Hostname Cannot Be Null
- dynamodb-admin command not found
- resourcenotfoundexception dynamodb nodejs
- accessdeniedexception dynamodb
- dynamodb mapper save not persisting
- ProvisionedThroughputExceededException DynamoDB
- comparison operator does not return all attributes dynamodb
- dynamodb put function not working
- dynamodb put item not working
- aws.dynamodb.documentclient is not a constructor
- DynamoDB local is not available for stage test
- DynamoDB Network Error: self signed certificate in chain
- DynamoDB scan does not return all items
- DynamoDB stream no records processed
Spend less time in the AWS console, use Dynobase.
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2025 Dynobase