Error: dynamodb cannot create preexisting table

Answered by Rafal Wilinski
Last updated: October 23rd, 2026
Solution
Cannot create preexisting table means CreateTable is trying to use a name already present in that database environment. In AWS, table names must be unique within an account and Region.
- Describe the existing table with the same identity, Region and endpoint as the create request.
- If it is the intended table, verify its schema and wait for it to be ready rather than creating it again.
- For an independent test or environment, choose a distinct table name.
- If infrastructure code should manage an existing table, use the tool's resource-import workflow instead of declaring a conflicting new resource.
aws dynamodb describe-table --table-name Orders --region us-east-1 aws dynamodb wait table-exists --table-name Orders --region us-east-1
Check for two startup processes racing to create the same table. Catch the specific already-exists condition, then validate the discovered resource; do not treat every create failure as success. Deleting the existing table is not a routine fix because it can destroy its data. For Local, examine persistent volumes and sharedDb settings too.
See table creation and AWS documentation.
Other Common DynamoDB Errors (with Solutions)
- CORS Error DynamoDB
- DynamoDB scan does not return all items
- ValidationException: Invalid KeyConditionExpression: Attribute name is a reserved keyword;
- dynamodb the table does not have the specified index
- dynamodb put item not working
- Boto3 DynamoDB KeyError
- dynamodb attribute does not exist
- dynamodb update fail if not exists
- Could not connect to the endpoint URL https:dynamodb.singapore.amazonaws.com
- DynamoDB Mapper Could Not Instantiate Class
- dynamodb unable to parse base64 string
- DynamoDB stream no records processed
- dynamodb 1 validation error detected value
- sls dynamodb install not working
- ExpressionAttributeValues contains invalid value: One or more parameter values were invalid: An AttributeValue may not contain an empty string
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase