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

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