Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

691
Views
Exception: The parameters (String) don't match the method signature for SpreadsheetApp.Range.setValues

I was coding and i got stuck on this error. It keeps giving me that error "Exception: The parameters (String) don't match the method signature for SpreadsheetApp.Range.setValues." on the .setValues line which doesn't make any sense to me.

Here is my code.

var finalPercentage5 = percantage5.map(x => [x]);
    Logger.log(values.length)
    Logger.log(finalPercentage5)
    Logger.log(finalPercentage5[4][0])
    for (var row=3; row<values.length; row++) { 
      if (M4.includes(values[row][0])) {
      var i=0;
          Logger.log(finalPercentage5[i][0])
        ss.getRange(row+3, 28).setValues(finalPercentage5[i][0]);
        i++;
              
        }
    }

I tried to debug it and it seem to me it is a number!

Here is a picture of the error:

enter image description here

Would really appreciate the help

If you any questions please let me know.

Thank you.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Try to change:

ss.getRange(row+3, 28).setValues(finalPercentage5[i][0]);

with:

ss.getRange(row+3, 28).setValue(finalPercentage5[i][0]);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!