DynamoDB Exception: ExpressionAttributeValues must not be empty, even when there are no variables #3802
Closed
1 task done
Labels
bug
This issue is a bug.
dynamodb
p1
This is a high priority issue
potential-regression
Marking this issue as a potential regression to be checked by team member
Describe the bug
With version 4 of the SDK and using the Document Model,
PutItemAsync
operations fail when passing aPutItemOperationConfig
without anyExpressionAttributeValues
, even if theConditionalExpression
has no variables.Regression Issue
Expected Behavior
The operation should succeed as it did with V3 of the SDK.
Current Behavior
The operation throws the following exception:
The behavior is the same, even if
ExpressionAttributeValues
is explicitly set to null or an empty collection.Reproduction Steps
Possible Solution
Setting the InitializeCollections to true fixes the issue.
However this is not the desired solution.
Additional Information/Context
Stack Trace:
AWS .NET SDK and/or Package version used
AWSSDK.DynamoDBv2 4.0.0.3
Targeted .NET Platform
.NET 9
Operating System and version
Windows 11
The text was updated successfully, but these errors were encountered: