• Nick "Team YL" Meyer
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
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