I've trying to deploy profiles from one org to another (org to org migration through AutoRabit) when I got this strange error no custom field named Case.SourceId found. There is no place in these profiles where Case objects and its fields has been referred. Any idea as to how this can be resolved?
-
Hey @sagnik, is the profile a new profile in the source org, or does it exist in both orgs and you are just migrating some changes to an existing profile?– Kevin BoyleMay 9, 2016 at 13:19
-
This is an existing profile and i'm just migrating some changes.– SagnikMay 9, 2016 at 13:36
2 Answers
It is known issue of Salesforce and they have already released the patch for this.
either enable "Live Agent" in the target org or remove "case.sourceId" field and deploy
-
-
-
Thanks for assisting. So what I understand from this is in the source org we have case object with sourceId while in destination it is not present. So you are suggesting to edit the metadata xml of case object of my source org ,remove the sourceId field and then deploy to destination, right?– SagnikMay 9, 2016 at 12:37
-
-
I enabled 'Live Agent' on target org . This time it threw another strange error "no customField named SocialPersona.AreWeFollowing found"!– SagnikMay 9, 2016 at 13:01
There could be a few things going wrong here, each with a potentially different solution. So more info on the profiles and the state of each org would be helpful.
You are deploying a new profile that contains a reference to the SourceId field of the Case object, and deploying that profile to an org that doesn't have the SourceId field.
You are deploying a change to a profile that contains a reference to the SourceId field and the target org doesn't have that field.
You are deploying a change to a profile that contains a reference to the SourceId field, and the target doesn't allow changes to that field for some reason.
You are experiencing a genuine Salesforce bug :)