Capture exception message but continue I have written a procedure to finish work orders, however if there is an error when calling the api to close I want it to log the problem but continue with the rest of orders. How do I complete this in the code please ? Sample code: objversion_ varchar2(200); wo_objid_ varchar2(200); wo_objversion_ varchar2(200); null_ varchar2(32000) := NULL; error_message_ varchar2(2000); t_ date; CURSOR Cur Is Select wt.state, wt.objid, wt.objversion, wt.task_seq, wo.objid as wo_objid_, wo.objversion as wo_objversion_, wo.wo_no from ifsapp.ACTIVE_SEPARATE_UIV wo inner join ifsapp.JT_TASK_UIV wt On wo.wo_no = wt.wo_no where wo.mch_code='MATERIALS' and trunc(wo.reg_date) <= Trunc(sysdate)-30; BEGIN FOR cur_chief in cur loop If cur_chief.state In ('Released','New') Then Transaction_SYS.Log_Status_Info('Work Order: '||cur_chief.wo_no|| ' has been finished.' , 'INFO'); IFSAPP.JT_TASK_API.START_WORK__( null_ , cur_chief.objid , cur_chief.objversion , null_ , 'DO' ); Commit; IFSAPP.JT_TASK_API.END_WORK__(