You need to sign in to do that
Don't have an account?
Failed validation on inbound change set to apex trigger - help fixing
I added a new record type to my opportunities titles Training Opportunity and simply want to add this to an apex trigger. When I try to validate the change in my production org, I receive the following:
Code Coverage Failure
The following triggers have 0% code coverage. Each trigger must have at least 1% code coverage.
ServiceContractTrigger
WriteContractDate
Apex Test Failures
Class NameMethod NameError MessageStartFulfillmentControllermyTestSystem.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, The pricebook entry currency code is different than the one assigned to the Service Contract.: [PricebookEntryId]
Stack Trace: Class.StartFulfillmentController.start: line 72, column 1 Class.StartFulfillmentController.myTest: line 144, column 1
Code Coverage Failure
The following triggers have 0% code coverage. Each trigger must have at least 1% code coverage.
ServiceContractTrigger
WriteContractDate
Apex Test Failures
Class NameMethod NameError MessageStartFulfillmentControllermyTestSystem.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, The pricebook entry currency code is different than the one assigned to the Service Contract.: [PricebookEntryId]
Stack Trace: Class.StartFulfillmentController.start: line 72, column 1 Class.StartFulfillmentController.myTest: line 144, column 1
Your controller MessageStartFulfillmentControllermyTestSystem is failed due to some pricebook entry code.
So kindly modify the your test class and for Production push your trigger should have atleast 1 % code coverage.
Best Regards,
Scott Haleo
@Hytechpro.com