• Andrei Markautsou
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Since Winter 18 update I'm getting the Internal Salesforce Error (-131831505) while executing Unit tests. Seems error persists during tests only. It works okay in real-time. I was able to find out that code fails on Inserting the task with custom Record Type Id which is part of the package:

Task task = new Task(Subject = "Subject",
                                 Description = "Description",
                                 ActivityDate = Date.today(),
                                 RecordTypeId = recordTypeId,
                                 Status = 'Completed'
                                 );
Since Winter 18 update I'm getting the Internal Salesforce Error (-131831505) while executing Unit tests. Seems error persists during tests only. It works okay in real-time. I was able to find out that code fails on Inserting the task with custom Record Type Id which is part of the package:

Task task = new Task(Subject = "Subject",
                                 Description = "Description",
                                 ActivityDate = Date.today(),
                                 RecordTypeId = recordTypeId,
                                 Status = 'Completed'
                                 );