-O-
Kilo Patron

I don't think the problem is because of this code, but some other BR (or code) that is triggered by inserting an incident record.

To test this you should add instruction

incidentGR.setWorkflow(false);

before

incidentGR.initialize();

b.t.w, while at it, you should use

incidentGR.newRecord()

instead of initialize.