function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sfdcfoxsfdcfox 

500 Internal Server Error when calling PageReference.getContent()

We have some code in a managed package that allows a user to preview a Visualforce PDF, and once they are satisfied, they can save the file back to the parent record. This code works fine when the Visualforce page called is in our managed package. However, if the managed package instead tries to call a Visualforce page outside of our managed package, then the page crashes with a WSOD (White Screen of Death).

 

The error is as follows:

 

An internal server error has occurred
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact Salesforce Support. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience.

Thank you again for your patience and assistance. And thanks for using salesforce.com!

Error ID: 1710413537-5764 (587506552)

 

Of course, I've submitted a case to Support, but I wanted to see if anyone has encountered a problem with getContent() crashing a Visualforce page like this, and what the resolution to this was.

Anup JadhavAnup Jadhav

Anything in the debug logs?

 

- Anup