Error: 'dynamodb' object has no attribute 'table'

Answered by Rafal Wilinski
Last updated: October 23rd, 2026
Solution
'DynamoDB' object has no attribute 'Table' means you called the resource-level Table method on a low-level boto3 client, or used the wrong capitalization. Choose one interface and match its request format.
import boto3
dynamodb = boto3.resource("dynamodb", region_name="us-east-1")
table = dynamodb.Table("People")
response = table.get_item(Key={"pk": "person-1"})
print(response.get("Item"))The equivalent client request is:
client = boto3.client("dynamodb", region_name="us-east-1")
response = client.get_item(
TableName="People", Key={"pk": {"S": "person-1"}}
)The resource method is Table, with a capital T; the client method is get_item. The resource returns native Python values, including Decimal for numbers. The client returns typed AttributeValue dictionaries. If this still fails, check that a local variable or module named boto3 has not replaced the imported package.
See boto3 examples and AWS documentation.
Other Common DynamoDB Errors (with Solutions)
- DynamoDB BatchWriteItem error
- dynamodb unknown error
- why is the GSI dynamodb not showing item count
- dynamodb connection timeout
- DynamoDB BatchSave not working
- dynamodb cannot read property '0' of undefined
- dynamodb number_value cannot be converted to string
- could not unmarshal the value dynamodb
- is not authorized to perform dynamodb:* on resource
- dynamodb cannot create preexisting table
- dynamodb list_append returns true but does not work
- DynamoDB type is not supported
- dynamodb atomic counter not working
- dynamodb unable to locate property for key attribute
- DynamoDB stream lambda error
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
- SSH GUI Client
- Chat With Cloud
- MongoDB GUI Client
- AWS Cost Monitoring
- DynamoDB Query Builder
- DynamoDB Code Examples
- DynamoDB Node.js Queries
- DynamoDB JSON Converter
- DynamoDB UUID Generator
- DynamoDB Local Admin GUI
- DynamoDB Pricing Calculator
- DynamoDB Single-Table Design
- Best DynamoDB GUI Clients
- Dynobase vs DynoTable
DynamoDB Info
© 2026 Dynobase