Validation Failed for 1 Parameter: Invalid number

Hi All,

I’m new to Make, and I’m trying to create a simple scenario to create a deposit in QB when a payment is received in Stripe.

I’m getting an error message:
Validation failed for 1 parameter(s). - Invalid number in parameter ‘Amount’.

I found a few posts about this here in the community forum and tried: parseNumber(2.object.amount/ 100) in the amount field and still got the same error. When I enter just an actual number in the field, it does successfully create a deposit in QB. So it seems I just need to get the number formatting right for this field.

Any suggestions greatly appreciated!
Thank you!

1 Like


1 Like

Hi @Nirms
You should map the division from math function or {{/}}.

{{parseNumber(699.`2` / 100)}}

image

1 Like

Thanks for your reply @Msquare_Automation

I tried {{parseNumber(2.object.amount / 100)}} and got the same error. Is this what you suggested? If new to this, so if I’m missing something, please let me know! Thanks.

1 Like

Hi @Nirms

Apologies for the confusion. Try this formula instead: first, convert the text to a number, and then perform the operation.
image

1 Like

Hi @Msquare_Automation

Thanks for your second suggestion. I tried this too, along with another variation on the formula, and neither of them worked. I got the same error as before.

I’m open to any other suggestions you’ve got. I’d love to make this work in make, but I’m not sure what to try next.


1 Like

Hi @Nirms
Can you remove the comma and give it another try? Also, please share the output bundle of the module where you get the amount from.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

3 Likes

Hi @Msquare_Automation

It worked! I actually did two things - I created a new scenario from scratch, and then in the new scenario I removed the comma from the formula as you suggested.

Thanks for you help. I appreciate it!

1 Like

Hi @Nirms

Glad to know you issue is solved.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

1 Like