question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

One or more parameter values were invalid: An AttributeValue may not contain an empty string

See original GitHub issue

I’m experiencing the following error when one of my fields is an empty string:

One or more parameter values were invalid: An AttributeValue may not contain an empty string (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException;

I was very surprised to discover that DynamoDb doesn’t support empty strings. Is it supposed to work out of the box with Scanamo? Is there a way to configure Scanamo/provide a string format to work around this issue?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
regiskuckaertzcommented, Mar 14, 2019

I was very surprised to discover that DynamoDb doesn’t support empty strings.

You have no idea 😩 We could change the string encoder to use null there, see if it fixes the issue.

0reactions
regiskuckaertzcommented, Mar 20, 2019

haha 😅 thanks for bearing with us and doing all the testing! I’ll merge asap and tag a new release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attribute may not contain an empty string - Stack Overflow
One or more parameter values were invalid: An AttributeValue may not contain an empty string ... BEFORE it puts the data in the...
Read more >
Empty attribute values cannot be added to a DynamoDB table
One or more parameter values were invalid: An AttributeValue may not contain an empty string (Service: AmazonDynamoDBv2; Status Code: 400; ...
Read more >
Amazon DynamoDB now supports empty values for non-key ...
Amazon DynamoDB now supports empty values for non-key String and Binary attributes in DynamoDB tables. Empty value support gives you greater ...
Read more >
What is causing the error "AmazonDynamoDBException
AmazonDynamoDBException : One or more parameter values are not valid. The AttributeValue for a key attribute cannot contain an empty string ...
Read more >
aws/aws-sdk-go - Gitter
... empty string to dynamo. however, I got this error: "ValidationException: One or more parameter values were invalid: An AttributeValue may not contain...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found