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?
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
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 :)