I am trying to move a lookup field but I am getting an error:

referenceTo value of 'xxxxxx__c' does not resolve to a valid sObject type.

  • If the lookup is to a parent type not in the target org, you can't deploy the field alone...you have to include that parent type.
    – Adrian Larson
    Jun 27 '17 at 12:38
  • @AdrianLarson Thank you! The objects api name in target org was changed and i did not consider it
    – deepak
    Jun 27 '17 at 12:57

Triple check that you have the parent object present in the target org. Having it missing is the only reason you would get such an error.

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.