Skip to Content
0
Former Member
Feb 18, 2011 at 08:12 PM

Sender FCC

30 Views

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