0

Trying to deploy package (big one) to a new org but all the tests failed with very weird errors:

1)line -1, column -1: Dependent class is invalid and needs recompilation: Class ClassName : Variable does not exist: isReadOnly Stack Trace: null

2) line -1, column -1: Dependent class is invalid and needs recompilation: Class ClassName : Method does not exist or incorrect signature: void MethodName from the type MethodType Stack Trace: null

Do you know the root cause of the errors?

  • Before deployment all the classes were compiled. – neckobik Mar 18 at 10:58
  • It can be hard to find the salient points in the error messages when a large deployment fails. This could represent a missing dependency - a custom class or sObject that's not present in the target org. Can you find any other text that describes the "first" error, usually at the head of the log? – David Reed Mar 18 at 13:03
0

It is good practice to compile all classes and check that if any of the classes in your package returning an error for such errors:

Setup Menu -> Develop -> Apex Classes -> Compile all classes

  • I've compiled all the classes before deployment, never the less got this error. – neckobik Mar 18 at 10:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.