You need to sign in to do that
Don't have an account?
Globe 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() | Class | 31 | 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() | Class | 31 | 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() | Class | 31 | 1 | 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" |
Milestone1_GettingStartedController.testGettingStartedProject() | Class | 233 | 1 | Failure 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. |
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.