Error: dynamodb getItem() is not a function

Answered by Rafal Wilinski
What's Causing This Error
This error occurs when the DynamoDB object you use does not contain the getItem() function. For example, the document client does not contain the getItem() function, but contains the get() function.
Solution - Here's How To Resolve It
Try one of the following steps to resolve the error:
1. Install the AWS SDK.
Verify that you have installed the AWS SDK in the project. If you have not installed it, use the below command to install the SDK.
npm i aws-sdk // for Node.js
2. Instantiate a DynamoDB object from the correct import.
Make sure you use the DynamoDB object as shown in the code snippet below.
const aws = require('aws-sdk');
const dynamo = new aws.DynamoDB();
3. Use Valid Naming
Use getItem() and not getitem() to invoke the function. The method is only available in camel casing convention.
Other Common DynamoDB Errors (with Solutions)
- dynamodb botocore.exceptions.nocredentialserror unable to locate credentials
- AWS Lambda DynamoDB Stream Error
- Boto3 DynamoDB KeyError
- AWS CLI DynamoDB Error Parsing Parameter
- KMS Key Access Denied Error DynamoDB
- DynamoDB TTL Not Working
- name key is not defined dynamodb
- DynamoDB Update Not Working
- dynamodb-admin command not found
- Unable to start DynamoDB Local process
- dynamodb query key condition not supported
- ConfigError: Missing region in config
- dynamodb 1 validation error detected value
- DynamoDB - The Security Token Included In The Request Is Invalid
- DynamoDB Internal Server Error
Dynobase is a Professional GUI Client for DynamoDB
Start your 7-day free trial today
Product Features
DynamoDB Tools
DynamoDB Info
© 2026 Dynobase