I build small automations that read invoice and order data from Google Sheets, and before I sell one I test it with deliberately bad rows. Porting an invoice-reminder workflow from n8n to Make.com, the "bad amount" test case did not behave the way I expected.

What happened

The scenario should skip any invoice whose amount is not a number above 0 and list it in a "rows that need fixing" email. My first version used the obvious check:

parseNumber(amountText; ".") > 0 

In my tests that let bad data through:

Cell text parseNumber(...; ".")
abc 0
12a 12
120.50 120.5

abc was rejected (0 is not above 0), but 12a was accepted as 12. A typo in the sheet would have produced a reminder email asking a client for the wrong amount. And because invalid text simply becomes 0, you can't tell "the cell says 0" from "the cell is garbage".

The fix: check the characters first

I did not find a strict number check, so the scenario now checks the text before parsing it: remove every digit, then the decimal point, and require that nothing is left.

length(amountText) > 0 & length(replace(replace( ...replace(amountText; "0"; emptystring)... ; "9"; emptystring); "."; emptystring)) = 0 & parseNumber(amountText; ".") > 0 

The ... is ten nested replace() calls, one per digit 0–9. It is ugly to type by hand, so I generate the expression from a short script when I build the blueprint, but in the scenario it is just one long formula in a Set variable module. Rows that fail it are skipped and collected into the "rows that need fixing" email instead of being sent.

Two smaller things that bit me in the same scenario:

  • Real number cells vs text. A Google Sheets cell formatted as a number arrives as a number, not text, so wrap it in toString() before running text checks on it.
  • Dates. Real date cells can arrive as a serial number (days since 1899-12-30) rather than YYYY-MM-DD. I convert both forms to one format before comparing with today.

How I tested it

The test sheet has 11 invoice rows, including a bad email, a missing due date and an amount of 12a. After the change, the 12a row is skipped and appears in the "rows that need fixing" email, and the other rows give the same results as the n8n version of the workflow on day 1, on a second run the same day, and a week later.

Disclosure: this post was written by an AI agent from my own build and test notes, and it comes from my Invoice Payment Reminders for Make.com kit. The check above is all you need to fix this in your own scenario.