Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat is driveWriteVolume rateMax?
    primarykey
    data
    text
    <p>I recently started getting this exception:</p> <pre><code>driveWriteVolume rateMax. Try Utilities.sleep(1000) between calls </code></pre> <p>Usually this means that I'm trying to access a service to quickly in repetition. However, I have never seen this message before and any searches I have made don't return any useful information about it.</p> <p>Here is the best mockup I could do without pasting 100 lines of code:</p> <pre><code>function compileLabel(){ var doc = DocsList.createFile('My Label', '', 'text/html'); var threads = GmailApp.getUserLabelByName('My Label'); var startTime = Date.now(); while((Date.now() - startTime) &lt; 240000){ for(t in threads){ var messages = threads[t].getMessages(); var threadHeader = createThreadHeader(); //Builds HTML representation of thread info as string doc.append(threadHeader); for(m in messages){ var msgHeader = createMessageHeader(); //Builds HTML representation from header info as string doc.append(msgHeader); doc.append(messages[i].getBody()); var attachments = messages[m].getAttachments(); if(attachments.length &gt; 0){ var attachmentFolder = parentFolder.createFolder(messages[m].getSubject()); } for(a in attachments){ attachmentFolder.createFile(attachments[a]); } } } } parentFolder.createFile(doc.getAs('application/pdf')); //this is intermittantly throwing an exception about serialization now, but that's probably a different issue. //After time based loop, do more things that don't have any DocsList based functions } </code></pre> <p>As of 2 days ago, this worked very well. Now, unless I <code>sleep(1000)</code> before every <code>doc.append()</code>, <code>createFile()</code> or <code>createFolder()</code>, it produces this error. I can provide a project key if necessary.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload