You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you expect should have happened?
Update to work normally regardless of the attribute name
What was the config (if any) you used?
N/A
What stacktrace or error message did you see? Invalid UpdateExpression: Syntax error; token: \"#\", near: \", #,\"
Similar or dependent issues:
N/A
Additional Data
Which powertool package are you using?
lambda-powertools-dynamodb-client
Which version are you using?
1.26.0
Middy engine version you're using
1.4.0
Operating System
AWS Lambda / NodeJS
Stack Trace
ValidationException: Invalid UpdateExpression: Syntax error; token: \"#\", near: \", #,\"
at Request.extractError (/node_modules/aws-sdk/lib/protocol/json.js:51:1)
at Request.callListeners (/node_modules/aws-sdk/lib/sequential_executor.js:106:1)
at Request.emit (/node_modules/aws-sdk/lib/sequential_executor.js:78:1)
at Request.emit (/node_modules/aws-sdk/lib/request.js:688:1)
at Request.transition (/node_modules/aws-sdk/lib/request.js:22:1)
at AcceptorStateMachine.runTo (/node_modules/aws-sdk/lib/state_machine.js:14:1)
at /node_modules/aws-sdk/lib/state_machine.js:26:1
at Request.<anonymous> (/node_modules/aws-sdk/lib/request.js:38:1)
at Request.<anonymous> (/node_modules/aws-sdk/lib/request.js:690:1)
at Request.callListeners (/node_modules/aws-sdk/lib/sequential_executor.js:116:1)
Provider Error messages:
N/A
The text was updated successfully, but these errors were encountered:
This is a Bug Report
Description
Update fails in case attribute name contains keyword ADD (e.g. address)
The problem is assumably caused by updateExpression split located here: https://github.com/getndazn/dazn-lambda-powertools/blob/master/packages/lambda-powertools-dynamodb-client/index.js#L26
Update to work normally regardless of the attribute name
N/A
Invalid UpdateExpression: Syntax error; token: \"#\", near: \", #,\"
Similar or dependent issues:
N/A
Additional Data
lambda-powertools-dynamodb-client
1.26.0
1.4.0
AWS Lambda / NodeJS
N/A
The text was updated successfully, but these errors were encountered: