function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Deployment issue

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.

Mudasir WaniMudasir Wani

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.

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.
I included all components objects,fields,vf pages,trigger apex classes,profiles everything i included ,in apex classes deployement step throwing error.