cancel
Showing results for 
Search instead for 
Did you mean: 

sender file adapter missingLastFields Parameter

Former Member
0 Kudos

hi all,

i have a wierd problem...

i use a sender file adapter with content conversion to read the data of a file.

all is fine until he get to a record when the last couple of fields are not in the file (and it's ok that they don't appear). i want the adapter to put no data in the last couple of fields but convert them to the XML tags.

i am using the parameters: missingLastFields and keepIncompleteFields to keep the fields although they don't appear in the file.

the parameters i am using are these:

SA140.fieldNames:

ActionCode,UpdateType,IDNumber,Filler1,RecordCode,Filler2,ExteriorColour1,Filler3,ExteriorColour2,Filler4,ExteriorColour3,Filler5,ExteriorColour4,Filler6,ExteriorColour5,Filler7,ColourArea1,Filler8,ColourArea2,Filler9,ColourArea3,Filler10,ColourArea4,Filler11,ColourArea5,Filler12,TireCode1,Filler13,TireCode2,Filler14,TireCode3,Filler15,TireCode4,Filler16,TireCode5

SA140.fieldFixedLengths:

2,2,10,4,3,41,5,1,5,1,5,1,5,1,5,1,2,1,2,1,2,1,2,1,2,1,6,10,6,10,6,10,6,10,6

SA140.keyFieldValue:

140

SA140.missingLastFields:

Ignore (i used the parameter "add" too and it still didn't work)

SA140.keepIncompleteFieids

true

the row i am trying to read is:

024018837002186 21140 1799 KW16 RW17 1010 9147 F18L19 7503 F18L19 7502 F18K27 7508

as you see a couple of the last fields are showing in the text.

could you please tell what am i doing wrong?

maybe there is another parameter i missed?

regards,

roi grosfeld

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

nope,

still the same problem and error

Former Member
0 Kudos

Hi,

Try to use parameter of FCC missingLastfields and value = ignore

Best Regards.

Former Member
0 Kudos

sorry but it still doesn't work...

i am getting the same error:

Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 5 according to structure 'SA140':java.lang.Exception: Consistency error: last field in structure 'SA140.' is incomplete - specify 'keepIncompleteFields' parameter accordingly to allow this

regards,

roi grosfeld

Former Member
0 Kudos

hi Sushil,

i already tryed this... the content conversion documantaion say it is a obsolete command.

and it is as the documantion point as it still doesn't work...

regards,

roi grosfeld

prateek
Active Contributor
0 Kudos

Use

SA140.keepIncompleteFieids - YES

instead of

SA140.keepIncompleteFieids - true

Regards,

Prateek

Former Member
0 Kudos

try using the parameter lastFieldOptional

BR,

Sushil