dynobase-icon
Dynobase

Error: DynamoDB Delete Method Not Working For The First Time

Rafal Wilinski

Answered by Rafal Wilinski

What's Causing This Error

In many cases, this error occurs when the key you specify is not available. But sometimes, some SDK functions can cause it if you do not pass a callback parameter, even when it is not mandatory.

Solution: Here's How To Resolve It

As the first step, double-check whether the key you specify is accurate and exists within the database. If it is correct and you are not getting any error messages, it is probably because of the second reason. So, try passing a callback parameter. Given below is a sample code that represents this solution.

const dataRspns = await ddb.deleteItem(params, () => {}).promise();

Tired of AWS Console? Try Dynobase.

Try 7-day free trial. No strings attached.

Product Features

Download
/
Changelog
/
Pricing
/
Member Portal
/
Privacy
/
EULA
/
Twitter
© 2024 Dynobase
+
Still using AWS DynamoDB Console?
Try Dynobase to accelerate your DynamoDB workflow. Start your 7-day free trial today.