1067 Notification to system events can only be set on persistent objects
Cause
This error occurs if the target parameter of the Object class beginNotification method is transient and the eventType parameter is a system event (that is, a value less than 16, which includes the RootSchema global constants Any_System_Event (0), Object_Create_Event (4), Object_Delete_Event (6), and Object_Update_Event (3)).
Action
Change your application code so that notification to system events is not set on transient objects.