cancel
Showing results for 
Search instead for 
Did you mean: 

File adapter: lastFiledsOptional = YES

Former Member
0 Kudos

Hi, I have a file adapter that works fine with this setup:

<u>Structure:</u>

Head,1,Line,*

<u>Adapter:</u>

Head.lastFieldsOptional = YES

Line.lastFieldsOptional = YES

But with this setup, i still get the message

<i>java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this</i>

from the adapter monitoring:

<u>Structure:</u>

Head,1,Line,*,end,1

<u>Adapter:</u>

Head.lastFieldsOptional = YES

Line.lastFieldsOptional = YES

end.lastFieldsOptional = YES

Any suggestions?

Accepted Solutions (0)

Answers (1)

Answers (1)

moorthy
Active Contributor
0 Kudos

Hi Rune,

Are you getting error in your second setup ? If so , try to give structure like this.

Head,1,Line,,end,<b></b>

Regards,

Moorthy

Former Member
0 Kudos

Hi, yes the second setup fails with the same message, even after trying this:

Head,1,Line,,end,

It fails when the file content is like this:

00

99

It works then the file look like this:

00 header data

data data data

99

Former Member
0 Kudos

It now works with my second setup, I had wrote the head field with a big H instad of a small h.