Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
8 years, 1 month ago
During the retrieve step (trying to retrieve the code) while trying to deploy the code in the target environment I get the following error:
Retrieve warnings (1): [sf:retrieve] package.xml - Entity type
'ApexClass' is not available in this organization
package.xml, I have provided the ApexClass metadata type. Btw, I get this error in a certain org but dont get this in other orgs while trying to retrieve using the migration toolkit.
Apr 21, 2015 at 3:45
41 1 1 silver badge 2 2 bronze badges
This could be a profile issue. Make sure your user's Profile has the "Author Apex" permission.
Aug 31, 2016 at 15:34
331 4 4 silver badges 17 17 bronze badges
Not all orgs can use ApexClass. You need at least enterprise edition to use Apex Code. If the target org should be capable of housing code, it could be a glitch. In that case, contact support. They can fix this error.
Apr 21, 2015 at 8:53
468k 19 19 gold badges 429 429 silver badges 769 769 bronze badges
log in to answer this question.
Not the answer you're looking for? Browse other questions tagged
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only