sheet.copyTo always returns "A server error has occurred" in new Google sheets -


I do not mind that I can not get the sheet.copyTo () function to work in the new Google Sheet. Always has "a server error", I have tried to convert the source into a new format. The same code works correctly with the old Google Sheets with the exact same source that does not work with CSV files.

works for me

  function ctest () {var Source = SpreadsheetApp.getActiveSpreadsheet (); Var sheet = source.getSheets () [1]; Logger.log (sheet.getName ()) var destination = spreadsheet App.create ("testcopy"); Sheet.copyTo (destination); }    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -