on 02-18-2011 8:12 PM
Hi,
I am doing a file to idoc with sender file with fixed length and get the below error, I have more fields but i have posted only few under row, should I be having one more node above the row? as per Michal's blog, please help
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'row':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
My input structure is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SAP_OUT xmlns:ns0="http://HRtoSAP">
<row>
<CON>12677</CON>
<EMPLOYEE_NUMBER>56865</EMPLOYEE_NUMBER>
<RACE_CODE>01</RACE_CODE>
<SEX_CODE>M</SEX_CODE>
</row>
</ns0:MT_SAP_OUT>
FCC
Document name: MT_SAP_OUT
Document namespace: http://HRtoSAP
Recordset structure: row,*
Recordset sequence: Ascending
row.fieldFixedLengths 6,10,2,1
row.fieldNames CON,EMPLOYEE_NUMBER,RACE_CODE,SEX_CODE
row.processFieldNames fromConfiguration
There could be sequence mismatch or error in specifying row elements in fcc cc.
Try this and test
row.missingLastfields :ignore
row.keepIncompleteFields : YES
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
As specified by Bhaskar you can use :
row.missingLastfields :ignore
row.keepIncompleteFields : YES
which eliminates if there some thing extra in your row.
Thanks,
Chichili
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.