Google Apps Script を使用してスプレッドシートを操作しています。私のコードは機能していないので、バグを取り除く作業をしています。スプレッドシートの値を配列にコピーし、配列にいくつかの変更を加え、それらの変更を使用してスプレッドシートの一部を書き直し、他の部分を再フォーマットすることになっています。
バグ チェックの一環として、必要な変更がすべて行われた後で、配列をスプレッドシートのセルに書き戻そうとしました。すると、質問のタイトルにエラーが表示されます。
error: Matrix is not rectangular {" ","Score","Max Poss.","","","","asdf","","","","","","","";"Steve:",1,133,"","","","eFEf","","","","","","","";"Chris:",0,126,"","","","First we test the color change.","","","","","","","";"Tyler:",5,130,"","","","And now let's see...","","","","","","","";"Billy:",3,127,"","","","df","","","","","","","";"Drew:",0,122,"","","#N/A","gtttt","","","","","","","";"Yllib:",9,133,"","","","vrrr","","","","","","","";"","","","","","","","","","","","","","";"-W/L-","Drew","Steve","Chris","Tyler","Billy","HOME","AWAY","Billy","Tyler","Chris","Steve","Drew","-W/L-";"l",4,"",4,6,"","","",3,"","",1,"","w";"W","","","",5,"","","",9,"",6,3,5,"l";"",3,12,2,2,2,"","","","","","",""," ";"","","","","","","","",11,1,5,8,6," ";"",10,15,15,8,13,"","","","","","",""," ";"",8,10,14,16,12,"","","","","","",""," ";"","","","","","","","",10,14,10,16,14," ";"",13,13,11,13,16,"","","","","","",""," ";"","","","",4,"","","",4,"",9,6,16," ";"","",9,"","","","","",1,3,8,"",9," ";"","","","","","","","",8,12,13,2,12," ";"","","",1,"",5,"","","",11,"",4,1," ";"","","","","","","","",15,10,12,14,11," ";"",2,"",3,"",6,"","","",9,"",5,""," ";"W";"",2,"",7,7,7,"NYG -2.5","","","","",7,""," "}
var sheetArray = new Array (30); を使用して、両方の配列を作成しようとしました。および var sheetArray = []; 同じ結果で。
私はGoogleであまり出ていません。私の大きな疑問は、互換性のないスプレッドシートのセルに長方形の配列を表示しようとしているためにこのエラーが発生しているのか、それとも配列自体の作成または関連のない他の側面に問題があるのか ということだと思います画面。