Check_foreign_key

Hi,

I’am try using CHECK_FOREIGN_KEY with below configuration, but my output file is empty! Could someone help me?

PS: I’ve to change this properties:
Data.DATA_RECORDS_BUFFER_SIZE= 10485760 → 104857600
DataFormatter.FIELD_BUFFER_LENGTH= 512 → 1024
DataParser.FIELD_BUFFER_LENGTH= 512 → 1024

Thanks!

My graph
--------

<?xml version="1.0" encoding="UTF-8"?> select CD\_EMPRESA, CD\_TIPO\_LOCAL, NM\_TIPO\_LOCAL from ROP.ROP\_TPO\_LOCAL

metadata\Local.fmt
------------------

<?xml version="1.0" encoding="UTF-8"?>

metadata\ROP_TPO_LOCAL.fmt
--------------------------

<?xml version="1.0" encoding="UTF-8"?>

My table
--------
create table TEMP_ROP_LOCAL(
CD_LOCAL NUMBER(6),
NM_LOCAL VARCHAR2(30),
SG_LOCAL VARCHAR2(2),
CD_AGENCIA NUMBER(4),
DT_ABERTURA DATE,
DT_ABERTURA_PREVISTA DATE,
DT_ENCERRAMENTO DATE,
CD_TIPO_LOCAL NUMBER(2),
DT_ULTIMA_ALTERACAO DATE,
CD_AGENCIA_SUBSTITUTA NUMBER(4),
CD_LOCAL_UNICO NUMBER(9) PRIMARY KEY not null,
CD_EMPRESA VARCHAR2(15),
DT_LOCAL_ATUAL DATE)

My input file (Local.txt - original file has 27MB)
--------------------------------------------------
AABTP 00000197LOXXX XPTO BRASIL TRES PARTIC. 0000 AVENIDA PAULISTA 013743 ANDAR, PARTE BELA VISTABELA VISTA 01310916SPSAO PAULO SAO PAULO 28000738800000000000000000000000000000000000 200506240000000020050624200507010000007152467000104 000000000000000N0 000000000000000000 000265541000 90999902000000000000000000 000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000S00000000
AAP 00005100LOAGRIPAR-ADMINIS.PARTIC.LTDA 0000 AV. PAULISTA 013743 ANDAR BELA VISTABELA VISTA 01310916SPSAO PAULO SAO PAULO 28000738800000000000000000000000000000000000 199211042000011100000000200507250000050590140000135 000000000000000N0 000000000000000000 000065452000 90999902000000000000000000 000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000S00000000

My output file (not_ok.txt - rejected records)
----------------------------------------------
0 0 197 LOXXX XPTO BRASIL TRES PARTIC. 0 AVENIDA PAULISTA 1374 3 ANDAR, PARTE BELA VISTABELA VISTA 1310 916SPSAO PAULO SAO PAULO 2807388 0 0 0 0 0 0 200506240000000020050624200507010 7152467000104 0 N0 0 0 0 265541 0 9099992 0 0 0 0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000S00000000
0 0 5100 LOAGRIPAR-ADMINIS.PARTIC.LTDA 0 AV. PAULISTA 1374 3 ANDAR BELA VISTABELA VISTA 1310 916SPSAO PAULO SAO PAULO 2807388 0 0 0 0 0 0 199211042000011100000000200507250 50590140000135 0 N0 0 0 0 65452 0 9099992 0 0 0 0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000S00000000

Hello !

Your graph seems to be OK. I can’t really tell much since I am not the author of the component.

It may be a data related problem. Your “SgEmp” field from source (foreign) data has length 15 chars and it looks like it is padded to the full length, whereas your DB data is varchar which means not padded - that can be the problem - you may be comparing "AAA " versus “AAA” which is not the same.

David.