0

May I get some help on googlescript? This script is actually downloading responses from typeform into googlesheet. I have an issue in downloading.

error message:

incorrect range width, was 11 but should be 12 At this line:

doc.clearContents();

doc.getRange("A1:L" + array.length).setValues(array);

1
  • Can you share the script which is producing the error? Commented Oct 27, 2016 at 16:11

1 Answer 1

1

instead of hardcoding a part of your range definition try using a more reliable method like this :

doc.getRange(1,1,array.length, array[0].length).setValues(array);

if your array is right then it will work flawlessly .

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.