You need to sign in to do that
Don't have an account?
Error Deploying Apex Code
I'm trying to deploy three Apex classes to a Configuration-Only sandbox. Two of the classes, MissingValueException and NewLeadContact, are my actual classes. NewLeadContactTest is a UnitTest class, that tests the other two classes. All UnitTests pass and I've got 98% code coverage.
Problem is... I'm getting the error messages below.
classes/MissingValueException.cls:Not available for deploy for this organization
classes/MissingValueException.cls-meta.xml:Not available for deploy for this organizationclasses/newLeadContact.cls-meta.xml:Not available for deploy for this organizationclasses/newLeadContactTest.cls:Not available for deploy for this organization
classes/newLeadContactTest.cls-meta.xml:Not available for deploy for this organizationclasses/newLeadContact.cls:Not available for deploy for this organization
I'm doing my deployment using the Ant-based Migration Tool.
Here's the line from build.xml where I try and check my deployment...
<target name="checkDeployment">
<sf:deploy username="${sf.destinationusername}" password="${sf.destinationpassword}" serverurl="${sf.destinationserverurl}" deployRoot="sourceMetadata" runAllTests="true" checkOnly="true" />
</target>
What's wrong, that causes this error message?
All Answers