Skip to Content
0
Former Member
Jan 09, 2006 at 06:04 PM

File Content Conversion and Empty file issue

351 Views

Hello,

The issue is :

I have configured a file sender adapter with file Content Conversion. I have 2 kinds of records Header and Items.

i have defined the 'Key Field Name' based on the first character of each line of my flat file and the values associated :

Header.keyFieldValue = 1

Item.keyFieldValue = 2

Flat file example :

1;Headerfield1;Headerfield2

2;ItemField1;ItemField1;ItemField1;ItemField1;

2;ItemField1;ItemField1;ItemField1;ItemField1;

2;ItemField1;ItemField1;ItemField1;ItemField1;

and everything works fine !

But now imagine you receive a bad file like this :

xxxxx;ohhohoh;llllll

y;sdfsdfs;zezerz;zerzer

e;zerzerze;zezerzerzer

The result is : IS receive nothing and no alert is generated ?!!!???

What i have seen is that the adapter doesn't find any corresponding value for keyFieldValue so it consider that the flat file is empty and i do nothing, the file is archived and that's all no alert is generated ????

But i want to receive an alert for checking that the processed flat file was not correct !

If anybody has an idea, it will be great !

Regards,

Vincent