You need to sign in to do that
Don't have an account?
Amit "CLS" Rangari
Compilation Error only with ANT deployment
Hi,
I have developed a simple class which refers to the global class defined by the underlying package. I use the ANT with SF migration tools to deploy the code on my dev-org. I get following compilation error:
classes/WSMyAPI_v1.cls -- Error: Dependent class is invalid and needs recompilation:
(namespace)
namespace.class2 : line 141, column 47: Loop variable must be an SObject or list of object3__c (line 166, column 70)
Please note that this error is seen only through ANT deployment. When I deploy the code without WSMyAPI_v1.cls, succefully, and then using dev-console to paste the code from above WSMyAPI_v1.cls file, I dont get any compilation error.
Please advise!
Regards,
Amit Rangari
I have developed a simple class which refers to the global class defined by the underlying package. I use the ANT with SF migration tools to deploy the code on my dev-org. I get following compilation error:
classes/WSMyAPI_v1.cls -- Error: Dependent class is invalid and needs recompilation:
(namespace)
namespace.class2 : line 141, column 47: Loop variable must be an SObject or list of object3__c (line 166, column 70)
Please note that this error is seen only through ANT deployment. When I deploy the code without WSMyAPI_v1.cls, succefully, and then using dev-console to paste the code from above WSMyAPI_v1.cls file, I dont get any compilation error.
Please advise!
Regards,
Amit Rangari
Setup --> Develop --> Apex Classes and click Compile all classes link.
Ketan - If I use ANT deployment with SF migration tools, the uncompiling files are not pushed on to organization. Also, the compilation error is in other namespace, ie in a library package on which my development is dependent. I can not certainly recompile those classes.
Also, as said, the same file if I paste it to dev-console (create new class with same name) the file gets compiled and saved.
Thus it is only the 'ANT' which is giving me trouble.