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 console unable to delete this item
- name key is not defined dynamodb
- DynamoDB Errors InvalidSignatureException Signature Expired
- DynamoDB ConditionalCheckFailedException
- sls dynamodb install not working
- dynamodb list_append if_not_exists not working
- DynamoDB No Provisioned Throughput specified for the table
- dynamodb ttl not deleting / erasing items
- dynamodb cannot read property 's' of undefined
- dynamodb does not support null values
- DynamoDB string set cannot be empty
- dynamodb botocore.exceptions.nocredentialserror unable to locate credentials
- an expression attribute name used in the document path is not defined
- DynamoDB Update Not Working
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase