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
Nick "Team YL" MeyerNick "Team YL" Meyer 

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
Scott Haleo 4Scott Haleo 4
Hi Nick,

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