Error: DynamoDB Local Cannot Create Preexisting Table

Answered by Rafal Wilinski
Last updated: October 23rd, 2026
Solution
Cannot create preexisting table in DynamoDB Local means the table name is already present in the selected local database. Restarting a container does not clear a mounted database file.
- List or describe tables using the same endpoint, dummy access key and Region as the application.
- Check whether -sharedDb is enabled. Without it, Local separates database files by access key ID and Region.
- Remember that Local table names are case-insensitive, unlike real DynamoDB. Orders and orders conflict locally.
- Make test setup reuse and validate the existing schema, or use distinct test names. Avoid parallel setup processes racing to create the same table.
AWS_ACCESS_KEY_ID=local AWS_SECRET_ACCESS_KEY=local \ aws dynamodb list-tables --region us-east-1 \ --endpoint-url http://localhost:8000
For disposable tests, a separate -inMemory instance loses its data on shutdown and avoids reusing a persistent volume. Do not delete a shared volume or table as an automatic setup repair; it may contain another test or developer's data. If cleanup is intentional, target only the owned test table.
See Local setup and AWS documentation.
Other Common DynamoDB Errors (with Solutions)
- dynamodb query is null
- dynamodb does not support null values
- dynamodb list_append returns true but does not work
- dynamodb botocore.exceptions.nocredentialserror unable to locate credentials
- dynamodb unable to locate property for key attribute
- dynamodb cannot create preexisting table
- dynamodb: one or more parameter values were invalid: type mismatch for index key
- Could not connect to the endpoint URL https:dynamodb.singapore.amazonaws.com
- DynamoDB sorting is not supported for scan expressions
- moto dynamodb not working
- could not unconvert attribute dynamodb
- dynamodb cannot read properties of undefined
- dynamodb the table does not have the specified index
- dynamodb unable to locate credentials
- Dynamodb error 500
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase