on 02-02-2008 9:26 AM
Hi Gurus,
I am facing a problem in XI .The incoming file is PIPE as a field separator and a carriage return as end of each record.
The problem is that in trailer record if the last field has no value in the file then it is unable to identify it is a field.So all mapping which is there to check the empty filed is not working.
File format processed with status ok.
01|HEADER|F1
02|F1|F2|F3
03|COUNT1|F4
if the same file in the last record if the filed XX is blank then it is not able to trap in mapping.
01|HEADER|F1
02|F1|F2|F3
03|COUNT1|XX
If i am giving a extra PIPE at end of each record then it is working ok and the mapping can able to check if a field is blank.
But without putting a PIPE at the end is it possible to trap error if any last field is contains blank.
it is little URGENT.Please reply.
Thanks,
Satya
Hi,
Suppose you called 03|COUNT1|F4 row as "trailer" in recordset structure.
Then you can use the following parameters:
trailer.missingLastfields = ignore - to get converted to XML only fileds that have been filled in
trailer.missingLastfields = add - to have last fileds filled with empty values
trailer.missingLastfields = error - to terminate FCC since file has not complete structure
Regards,
Jakub
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
We have solved the problem.Actually the field in question is the last field of the trailer .Mapping is also there to check for NON blank case since XI not able find that a field itself so it is unable to trigger the valdation mapping done for that field.
Also the same field was not mapped to any other fields in the target structure.So we just mapped this field to target structure and after that XI start identfying the field and also it is validating.
Thanks for all your answers.
Satya Jethy
Hi All,
We have solved the problem.Actually the field in question is the last field of the trailer .Mapping is also there to check for NON blank case since XI not able find that a field itself so it is unable to trigger the valdation mapping done for that field.
Also the same field was not mapped to any other fields in the target structure.So we just mapped this field to target structure and after that XI start identfying the field and also it is validating.
Thanks for all your answers.
Satya Jethy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to specify the fieldNames along with field seperator in the FCC conversion.
Fieldnames will help to identify the columns and will be able to consider the values from kast line also.
Here you define the endSepearator as carriage return.
This will work out.
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi.
PLz try with field.endSeparator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.