+ Start a Discussion
venkateshyadav1243venkateshyadav1243 

Deployment issue

Hi
Am facing issue with deployment, am trying to deploy through ANT tool am not able to deploy its showing errors, But i tried the same with eclipse with out error its validated sucessfully,but through ANT am not able to deploy its showing error message "invalid cross reference id",I have to Deploy only through ANT.
Can any one faced same issue please let me know how to reslove Advance Thanks for your help.

Regards,
Venkatesh.
Mudasir WaniMudasir Wani
Hello,

invalid cross reference id issue means that you have some record Id's refrenced in your code which is not valid for your new organization.
Check if you are using any hardcoded values in your code, test class or in custom labels.

Thanks,
venkateshyadav1243venkateshyadav1243
Hi Wani,
Thanks for your replay ,am not hardcoded anything, same code when i validate through eclipse its sucess but In ANT only its showing error.
Mudasir WaniMudasir Wani
This should not be the case.
It is a weired behavour.
What all type of components are you validating.
 
venkateshyadav1243venkateshyadav1243
I included all components objects,fields,vf pages,trigger apex classes,profiles everything i included ,in apex classes deployement step throwing error.