+ Start a Discussion
DhairyaDhairya 

Deployment error

Hi,

 

   I am trying to deploy new custom object  named Complaint_Management from Sand Box to Production.

 

   Facing Error : 

 

 

# Deploy Results:
   File Name:    objects/Complaint_Management__c.object
   Full Name:  Complaint_Management__c
   Action:  NO ACTION
   Result:  FAILED
   Problem: The sharing model cannot be updated through the API.

 

 

 

Appreciate your response.

 

Thanks,

Dhairya

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora

There is a difference in sharing models of Complaint_Management  in production and sandbox, like if sharing setting is private for this object on production then it should be private on sandbox also. We can not update sharing settings while code deployment.

 

So first make both orgs sharing setting in sync then try deployment.

 

 

Thanks
Ankit Arora

 

All Answers

Ankit AroraAnkit Arora

There is a difference in sharing models of Complaint_Management  in production and sandbox, like if sharing setting is private for this object on production then it should be private on sandbox also. We can not update sharing settings while code deployment.

 

So first make both orgs sharing setting in sync then try deployment.

 

 

Thanks
Ankit Arora

 

This was selected as the best answer
DhairyaDhairya

Hey Ankit,

 

Thanks for your help. Got it.