Skip to content
Advertisement

Java: unable to delete dynamodb item value

I am trying to delete a field called “dog” from all of the items that resides on table animals, or that I use the following code:

JavaScript

But I am getting:

JavaScript

What am I doing wrong here?

by the way, I also tried:

JavaScript

But got the same exception. (Also tried DELETE instead of REMOVE)

Advertisement

Answer

I found the solution for the issue, I cant believe I missed it…. Remember kids, its mandatory to look at the actual values when debugging!

So instead of using just:

JavaScript

You need to explicitly ask for a String like so:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement