beforeInsert not firing, can you please spot check code

I have the exact problem, the event never is launched.

Be sure that you are inserting new data and not updating it in the problematic case.
You can try to use “beforeProcessing” instead of “beforeInsert” which will fire for all kinds of DB operations.