Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

693
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda