I'm trying to print a 2D array into a spreadsheet, but I am getting some error and I couldn't find any solution.
Here is my solution:
var URL = blabla
var Sheets = [bla,ble,bli]
var doc = SpreadsheetApp.openByUrl(URL);
var ss3 = doc.getSheetByName(Sheets[2]);
var FinalFacil = [[Matematicas, 1 Medio, Funciones, 6?,
Facil, A;B;C;D;E, D], [Matematicas, 1 Medio, Funciones, 7?, Facil,
A;B;C;D;E, E], [Matematicas, 1 Medio, Funciones, 3?, Facil, A;B;C;D;E, A],
[Matematicas, 1 Medio, Funciones, 4?, Facil, A;B;C;D;E, B]]
ss3.getRange("A1:G4").setValues(FinalFacil);
And I am getting the following error: Cannot find method setValues((class))
"1 Medio"- TheMasterFinalFacilin your script is[[Matematicas, 1 Medio, Funciones, 6?, Facil, A;B;C;D;E, D],,,], your script cannot be saved because of an error. But in your question, you say that an error ofCannot find method setValues((class))occurs. So can you provide for replicating your issue? - TanaikeFinalFacil, I pasted the output of my variable as the content of it (thinking that it would be easy to troubleshot). Thing isFinalFacilits the result of several filters that I am doing before. So think thatFinalFacilits just a 2D array. - angel guerreroFinalFaciljust before using it in setValues - TheMaster