pdalcol / Zippex

Native Apex Zip library for Salesforce.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apex CPU time limit exceeded

developerajain opened this issue · comments

I am getting CPU time limit exceeded error when i am try to getFile in a loop.

sampleZip = new Zippex(EncodingUtil.base64Decode(/*Some zip file*/));
sFileNames = sampleZip.getFileNames();
for(String fileName : sFileNames){
     if(fileName.endsWith('.xml')==false){
           Blob myBlob = sampleZip.getFile(fileName);
           if(String.isBlank(myBlob.toString())){
                  containedFileNames.add(fileName);
           }
     }
}

Is there any update on it? I am getting the same issue.

me too.

Same issue, when the file size gets larger

Same issue

Any solution , facing the same issue "Apex CPU time limit exceeded".

I'm having the same issue as well

if anyone find the solution of this problem please share with us.

I'm having the same issue as well

I'm having the same issue.
One workaround that I found is to use WinRar and compress the zip file with "Compression Method" = "Store"
image

Maybe we got the "Apex CPU Time limit exceeded" because Windows compile the .zip as ZIP64 (I'm not an expert, so this is just a guess) and request more processing from Apex