I'm running an apex method anonymously using SoqlXplorer:


I'm greeted with this error in the response:

FATAL_ERROR|System.SecurityException: Required permissions are not enabled.

I'm looking at the dependency information for the AccountClass class, and my profile has access to all of the features, objects (full CRUD), and other apex classes.

What else might cause this error?

  • 1
    Do you get the same error when using Developer Console or Workbench?
    – cropredy
    Jul 16, 2014 at 21:50
  • What occured immediately before the FATAL_ERROR in the Debug log? Try setting the logging levels to the finest levels to see what was going on. Jul 17, 2014 at 2:22
  • crop1645 -- yes. Daniel Ballinger -- Turned debugging to FINEST, and there's no additional information displayed other than some HEAP_ALLOCATEs.
    – Ray Dehler
    Jul 17, 2014 at 4:13

1 Answer 1


I was experiencing this error; it was due to my profile not having "author apex" privilege enabled.

  • While logged into your Salesforce instance, click your name at top right.
  • Choose "setup" in the dropdown menu.
  • In the search box, enter your username or email address.
  • Choose the record that corresponds to your user record
  • Click into your profile
  • Click edit
  • use browser search (control-F on windows or linux, or command-F on OS X) to find "author apex" permission
  • Check the box to enable "author apex" permission
  • Save

This should resolve the error.

  • 2
    Please show the steps to enable the 'Author Apex' privilege to give a more complete answer - see How to Answer
    – Dave Humm
    Sep 16, 2016 at 16:09
  • 1
    Edited response, above.
    – Bo Laurent
    Sep 17, 2016 at 22:21
  • Was not the case for me. I was system admin. Looks like a good answer though, and no way to know what the issue actually was with this org from 2 years ago. I'll mark it accepted.
    – Ray Dehler
    Sep 18, 2016 at 22:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .