I got the error 'Profile does not have access to: [Apex class]' when launching a Process Builder. What should I do?
If you got an error such as Profile does not have access to: sharinpix__RenameAlbum while attempting to launch a Process Builder that makes use of SharinPix classes or when using custom Apex classes that include SharinPix features, this is due to missing access to the mentioned class for the user that launched the Process Builder.
To correct such errors, you should assign the Apex class to the user or profile attempting to launch the Process Builder as follows:
- If you are using Apex class which is included in the SharinPix package, you can simply assign the permission set named SharinPix Lightning Components to the user.
Note: Such classes will have the namespace sharinpix in front, for example, sharinpix__TokenGeneration
- If you are using a custom Apex class, you should then assign the specified class to the user profile. For more details on how to assign an Apex class to a profile, click here.
Detailed error messages due to Process Builder failures are sent to the administrator that activated the Process or the user who last modified the process version that is failing by email. These messages are useful to identify the cause of the error as well as the user with the missing access to the Apex class.
You can control who receives process error emails. For more information on how this is done, click here.