Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

704
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda