Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apex CPU time limit exceeded #24

Open
developerajain opened this issue May 10, 2017 · 9 comments
Open

Apex CPU time limit exceeded #24

developerajain opened this issue May 10, 2017 · 9 comments

Comments

@developerajain
Copy link

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);
           }
     }
}
@manmeetitsme1987
Copy link

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

@msanty
Copy link

msanty commented Mar 8, 2018

me too.

@dawigood
Copy link

dawigood commented Jan 4, 2019

Same issue, when the file size gets larger

@bhushanpatil21
Copy link

Same issue

@hashmatrai
Copy link

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

@Oluwaseun-Smart
Copy link

I'm having the same issue as well

@jitendra-singh-developer

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

@ALevchukTechIn
Copy link

I'm having the same issue as well

@wnisidozi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants