+ Start a Discussion
Narasimha LakshmiNarasimha Lakshmi 

Getting Time limit exceeded when generating PDF in vf page

This was my debug list of SOQL 
Number of SOQL queries: 38 out of 100
  Number of query rows: 73 out of 50000
  Number of SOSL queries: 0 out of 20
  Number of DML statements: 0 out of 150
  Number of DML rows: 0 out of 10000
  Maximum CPU time: 184 out of 10000
  Maximum heap size: 0 out of 6000000
  Number of callouts: 0 out of 100
  Number of Email Invocations: 0 out of 10
  Number of future calls: 0 out of 50
  Number of queueable jobs added to the queue: 0 out of 50
  Number of Mobile Apex push calls: 0 out of 10


Stil I am getting Time out error.
(I had cleared all cache in vf page)
 
bob_buzzardbob_buzzard
Is this just when you render the page as PDF? I.e. if you set it to render as a regular VF page do you see the same thing? When I've experienced this it has usually turned out to be bad code in the controller that was iterating a number of collections many, many times. Once or twice it seemed to be an issue with the Salesforce instance in conjunction with my user, so other users could hit the page okay, and went away after a day or so.