25864 - Ficha complementar - Erro ao inserir na R033END
Problema:
Solução:
Ao tentar inserir ou alterar alguma informação na ficha complementar ocorre o seguinte erro:
Error - ORA-20103: Erro ao inserir na R033END
ORA-06512: at "ACLF_10041_RHP.R034CPL_EU", line 723
ORA-04088: error during execution of trigger 'ACLF_10041_RHP.R034CPL_EU'
Rotina / Tela:
Colaboradores > Ficha Cadastral > Complementar
Solução:
O sistema realiza o seguinte comando para realizar a inserção:
INSERT INTO R033END(CODPES,TIPEND,DATALT,ENDRUA,ENDNUM,ENDCPL,CODCID,CODBAI,ENDCEP,TIPLGR,EMPAUX,TIPAUX,CADAUX,DEPAUX,COLATI,CANAUX,DATAUX)
VALUES (L_CODPES,1,l_DatAtu,l_EndRua,l_EndNum,l_EndCpl,l_CodCid,l_CodBai,l_EndCep,l_TipLgr,:NEW.NUMEMP,:NEW.TIPCOL,:NEW.NUMCAD,0,l_ColAti,0,l_DatAltHFI);
Verificamos que o campo CODPES deste colaborador estava sem informação. Ao criar a pessoa e associar ela ao colaborador, o erro não foi mais apresentado.