declare dup_val_on_index exception; pragma exception_init (dup_val_on_index , -00001); begin execute immediate 'Insert into FORMA_PAGO values (38, ''VOUCHER ROD'', null,1,sysdate,1, null,''VR'',null, 0,null)'; exception when dup_val_on_index then null; end;