• The stored procedure works, because if I execute it outside the trigger, it works.

    Maybe my syntax is wrong for the trigger or something