Error: One or more parameter values were invalid: some AttributeDefinitions are not used
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 Not Supported Requires @DynamoDBTyped Or @DynamoDBTypeConverted
- DynamoDB local error spawn java ENOENT
- name key is not defined dynamodb
- DynamoDB Local Docker Not Working
- dynamodb property projection cannot be empty
- dynamodb index does not exist
- DynamoDB ConditionalCheckFailedException
- dynamodb docker unable to open database file
- dynamodb validation error detected
- DynamoDB Local NoClassDefFoundError
- dynamodb type custid is not supported
- DynamoDB no attribute schema defined
- dynamodb index not updated
- Boto3 DynamoDB KeyError
- DynamoDB parameter validation failed
Login to the AWS Console less. Use Dynobase.
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2023 Dynobase