cancel
Showing results for 
Search instead for 
Did you mean: 

Sender FCC

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

There could be sequence mismatch or error in specifying row elements in fcc cc.

Try this and test

row.missingLastfields :ignore

row.keepIncompleteFields : YES

Former Member
0 Kudos

The input file is missing spaces at the end so it was erroring out, thank you

Answers (1)

Answers (1)

naveen_chichili
Active Contributor
0 Kudos

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