Skip to main content
Best answer

ID value from MySQL doesn't match the row value from Google Sheets.


berprado

Hi, can anyone give me a hint on this issue. 

my trigger: NEW OR UPDATED ROW IN MYSQL

my action: UPDATE SPREADSHEET ROW(S) IN GOOGLE SHEETS

my zap: UPDTAES THE ROW OBTAINED FROM THE TRIGGER  BUT THE UPDATE TAKES PLACE ONE ROW BELOW. I mean.. placing the data on row (n) rather than placing it on row (n+1) 

See screenshots

As you can see… id 1 is pointing to row 2. I need id 1 to match row 1. My first row on the worksheet is a header row and it was formated according to zapiers advice.There is a video explaining How to set up your Google spreadsheet to work with Zapier.

 

My trigger gets this result after testing:

 

Everything is fine except that row has to be 153 NOT 152 because id 152 points to row 153.

The result i get with id 152, row 152 and COL$A 152 is this:

 

bye bye id 151  hello double id152 😭

If there was no header row everything would be smooth but i need the header row.

Where is my mistake?

any hint?

Thanks in advance

Best answer by robschmidtBest answer by robschmidt

Hi @berprado 

Just add a formatter > number > math action before the Google sheet action and add N + 1 (where n is the faulty current row number). Then map the output number to the row number field in Google sheet.

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

robschmidt
Forum|alt.badge.img+9
  • Zapier Expert
  • 617 replies
  • Answer
  • April 14, 2023

Hi @berprado 

Just add a formatter > number > math action before the Google sheet action and add N + 1 (where n is the faulty current row number). Then map the output number to the row number field in Google sheet.


berprado
  • Author
  • New
  • 1 reply
  • April 14, 2023

Thank you very much, seems to be working now,🤗


christina.d
Forum|alt.badge.img+9
  • Zapier Staff
  • 2653 replies
  • April 14, 2023

Awesome, thanks for letting us know, @berprado! We’re glad to hear it. 🤗