AWS Lambda – querying DynamoDB

Error:

Query operation: Invalid ProjectionExpression: Attribute name is a reserved keyword; reserved keyword: Name

Solved:

Mapping it by "ExpressionAttributeNames".

result = table.query(ProjectionExpression="#Name",
ExpressionAttributeNames={ "#Name": "Name" })

Note:

Situation : "Name" attribute of my dynamoDB table conflict to the AWS reserved keyword.

Be the first to comment

Leave a Reply

Your email address will not be published.


*