title: How would I fix audit table trigger error?
body: <pre><code>CREATE OR REPLACE TRIGGER AUDIT_IMONE_T1
    AFTER INSERT OR DELETE OR UPDATE ON IMONE
    FOR EACH ROW
  DECLARE
    v_T1_action VARCHAR2(6);
  BEGIN
    IF updating
    THEN
      v_T1_action := 'UPDATE';
    ELSIF deleting
    THEN
      v_T1_action := 'DELETE';
    ELSIF inserting
    THEN
      v_T1_action := 'INSERT';
    ELSE
      v_T1_action := NULL;
    END IF;
    
    IF v_T1_action IN ('DELETE','UPDATE') THEN
     INSERT INTO AUDIT_IMONE
    ( IMONES_ID,  IMONES_PAVADINIMAS,  IMONES_TELEFONO_NUMERIS, IMONES_KODAS,
      AUDIT_USER,  AUDIT_DATE,  AUDIT_ACTION)
     VALUES
    (:OLD.IMONES_ID, :OLD.IMONES_PAVADINIMAS, :OLD.IMONES_TELEFONO_NUMERIS, OLD.IMONES_KODAS,
      UPPER(v('APP_USER')), SYSDATE, v_T1_action);
    ELSE
     INSERT INTO AUDIT_IMONE
    ( IMONES_ID,  IMONES_PAVADINIMAS,  IMONES_TELEFONO_NUMERIS, IMONES_KODAS,
      AUDIT_USER,  AUDIT_DATE,  AUDIT_ACTION)
     VALUES
    (:NEW.IMONES_ID, :NEW.IMONES_PAVADINIMAS, :NEW.IMONES_TELEFONO_NUMERIS, :NEW.IMONES_KODAS,
      UPPER(v('APP_USER')), SYSDATE, v_T1_action);
    END IF;
  END AUDIT_IMONE_T1;
  </code></pre>
  <p>I have seen some examples of very similar code and tried to fix mine according to suggestions made on other posts, but I seem to still get the same errors whatever I do.</p>
  <p>I have tried removing AUDIT_IMONE_T1 after the END statement. Also I have ended my IF statement by END IF:</p>
  <pre><code>ORA-24344: success with compilation error
  ORA-06512: at &quot;SYS.WWV_DBMS_SQL_APEX_180200&quot;, line 548
  ORA-06512: at &quot;SYS.DBMS_SYS_SQL&quot;, line 1658
  ORA-06512: at &quot;SYS.WWV_DBMS_SQL_APEX_180200&quot;, line 534
  ORA-06512: at &quot;APEX_180200.WWV_FLOW_DYNAMIC_EXEC&quot;, line 2009
  
  
  3.   FOR EACH ROW
  4. DECLARE
  5.   v_T1_action VARCHAR2(6);
  6. BEGIN
  7.   IF updating
  </code></pre>