I am trying to create a simple delete trigger that deletes a task as soon as the task is created. I have very little background using APEX/creating triggers. Here is my trigger below:
trigger DeleteTasksSept on Task (after insert) {
for(Task DelTask : Trigger.new){
if(DelTask.IsDeleted != TRUE){
List<Task> delta = [SELECT ID, OwnerID FROM Task WHERE OwnerID = '0051400000BMa8N'];
delete delta;
}
}
}
When I test this by creating a new Task I am getting a validation error after I click save that says:
There were custom validation error(s) encountered while saving the affected record(s). The first validation error encountered was "common.exception.SfdcSqlException: ORA-20008: ORA-06512: at "DOPEY.CACCESS", line 129 ORA-06512: at "DOPEY.CACCESS", line 110 ORA-06512: at "DOPEY.CACTIVITYACCESS", line 1270 ORA-06512: at "DOPEY.CACCESS", line 2943 ORA-06512: at "DOPEY.CACCESS", line 2771 ORA-06512: at line 1 SQLException while executing plsql statement: {call cAccess.check_entity_access_proc_ncu(?,?,?,?,?,?)}(EXCLUDED, EXCLUDED, 00T56000003vdPx, EXCLUDED, true, false)".
Has anyone ever seen this error message before? Is there something wrong with the syntax of my trigger? Any help would be greatly appreciated!