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
Kiran.sfdc14Kiran.sfdc14 

Error in deploying sandbox to production in salesforce (Field integrity exception)

Hi,

 

I am deploying my project from sandbox to production. And i am using "ANT" tool for deploying. But it is giving me error as given below:

Error: objects/Form__c.object(144,13):field integrity exception: unknown (must specify either cascade delete or restrict delete for required lookup foreign key)

Can anybody help me please. Thanks,

pankajmehra009pankajmehra009

Goto line no 144 of your object Form__c there will be a Lookup Field , in that field remove the 'Required' Tag , remove that tag completed and start your ant deploying again.

 

 

 

NeilJWNeilJW
I faced a similar problem and found the below solution. In my case it had to do with changing a field type from a text to picklist field.
http://domorewithless.blog.com/?p=10