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
Globe Salesforce AdminGlobe Salesforce Admin 

Errors Saving changes in Eclipse to production org

Hi,

 

I keep getting the following errors when i try to save any changes to my production org with eclipse:

(No errors in sandbox)

Does anyone know how to fix this?

 

CampaignMemberFollowUpTest.MyUnitTestwithQuery()Class31 Failure Message: "System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Please ensure you have included either a sell sheet or an STM for this campaign", Failure Stack Trace: "Class.CampaignMemberFollowUpTestData.createTestData: line 31, column 1 Class.CampaignMemberFollowU...
CampaignMemberFollowUpTest.myUnitTest()Class31 Failure Message: "System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Please ensure you have included either a sell sheet or an STM for this campaign", Failure Stack Trace: "Class.CampaignMemberFollowUpTestData.createTestData: line 31, column 1 Class.CampaignMemberFollowU...
CampaignMemberFollowUpTestData.createTestData()Class311Failure Message: "System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Please ensure you have included either a sell sheet or an STM for this campaign", Failure Stack Trace: "Class.CampaignMemberFollowUpTestData.createTestData: line 31, column 1"
Milestone1_GettingStartedController.testGettingStartedProject()Class2331Failure Message: "System.AssertException: Assertion Failed", Failure Stack Trace: "Class.Milestone1_GettingStartedController.testGettingStartedProject: line 233, column 1"
Deploy Error   Average test coverage across all Apex Classes and Triggers is 72%, at least 75% test coverage is required.
Best Answer chosen by Admin (Salesforce Developers) 
Saikishore Reddy AengareddySaikishore Reddy Aengareddy

For the first 3 errors... you can deactivate the validation rules during deployment to production or update the test classes in such a way that validations are passed.

 

For the fourth one you will need up update the test class method testGettingStartedProject. You should update it to appropriate expected assertion value or comment out the assertion statement.