Lambda DynamoDB The parameter cannot be converted to a numeric value

0 votes
Can anyone figure out why this number string cannot be converted to a number!!

I have the following Lambda function which is taking a set of data being sent from API Gateway and then configuring it to save it to DynamoDB.
Feb 23, 2022 in AWS by Rahul
• 2,120 points
4,206 views

1 answer to this question.

0 votes

It cannot be converted because you are actually passing it as a string.

Remove the quotes (") around the profileId  from your JSON object where you are referencing the event,

"profile_id: { "N": event.profileArray[0].profileId }
...



answered Feb 23, 2022 by Korak
• 5,820 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What are the naming rules to be followed in DynamoDB?

There are certain rules that needs to ...READ MORE

answered Feb 15, 2019 in AWS by heena
9,943 views
0 votes
1 answer

Add a new item to a Dynamodb using a AWS lambda function each time a function is executed with Cloudwatch

The problem here is that the PutItem ...READ MORE

answered Feb 14, 2022 in AWS by Rahul
• 2,120 points
616 views
0 votes
1 answer

What is the difference between dynamodb and dynamodb stream?

DynamoDB Streams enables a read only view ...READ MORE

answered Feb 8, 2022 in AWS by Korak
• 5,820 points
491 views
0 votes
1 answer

How to add SSL certificate to AWS EC2 with the help of new AWS Certificate Manager service

You can't install the certificates created by ...READ MORE

answered Feb 21, 2022 in AWS by Korak
• 5,820 points
779 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP