loops - continuationToken is the same as the previous one -


i use google apps script function driveapp iterate through 425 folders. function handles 1 folder each run , saves continuationtoken userproperty. runs every minute.

my problem after many runs (~300) continuationtoken same previous 1 making loop cant past.

i have made script in many different ways token-issue occur , different folders. when handled multiple folders per run.

this do:

function name(){   var proper = propertiesservice.getuserproperties();   var alla = proper.getproperty('addloop');   if(alla == "")     alla = driveapp.getfolderbyid("id").getfolders();   else     alla = driveapp.continuefolderiterator(alla);    if(alla.hasnext()){     var next = alla.next();     proper.setproperty('addloop', alla.getcontinuationtoken());     functionname(next);   }   else     proper.setproperty('addloop', ""); } 

i can't believe scripting-error haven't read of limitation usage of apps script either... i'm clueless , happy input.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -