When updating a permission set in Salesforce to grant access to an Apex class, you may receive an error similar to the one below.
"Error: 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: 181345344544-6454(-1355300733)"
This article explains why this error occurs when editing Apex class access in a permission set and how to resolve it.
This article explains how to resolve an internal server error that occurs when editing Apex class access in a Salesforce permission set, by enabling the Enhanced Permission Set Component Views setting.
This error can occur when the Enhanced Permission Set Component Views setting is not enabled in the org, which can interfere with editing Apex class access on a permission set.
To resolve the error, enable the Enhanced Permission Set Component Views setting:
After enabling this setting, return to the permission set and try editing the Apex class access again — it should now save without the internal server error.
002717234

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.