You need to sign in to do that
Don't have an account?
Sean Barczynski
Internal Salesforce Error when running test class
Good afternoon,
I'm attempting to run a test method that creates a recurring event, but whenever I try to run it, I get an Internal Salesforce Error. If I comment out the recurrence part, the test class runs just fine.
Here's the snippet in question:
Please help!
I'm attempting to run a test method that creates a recurring event, but whenever I try to run it, I get an Internal Salesforce Error. If I comment out the recurrence part, the test class runs just fine.
Here's the snippet in question:
events.add(new Event(Subject = 'Review Meeting', WhatID = accounts[0].Id, ActivityDateTime = datetime.newInstance(2015, 8, 19, 10, 30, 0), FSTR__SUB_TYPE__C = 'Client Review Meeting', FINANCIAL_PLAN_UPDATE__C = TRUE, TAX_PLAN__C = TRUE, IPS_UPDATED__C = TRUE, IsRecurrence = true, RecurrenceStartDateTime = System.today(), RecurrenceEndDateOnly = System.today()+30, RecurrenceType = 'RecursDaily', RecurrenceInterval = 1, Status__c = 'Scheduled', DurationInMinutes = 60));
Please help!
Alex Selwyn
I believe you are assigning a date on a datetime. I am not familer with the object, but check RecurrenceStartDateTime. Use System.now() if its datetime.