cancel
Showing results for 
Search instead for 
Did you mean: 

Error in File Content Conversion Sender

former_member202642
Participant
0 Kudos

Hi All,

I am getting below error in my sender file channel:

"Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 3: missing structure(s) before type 'HeaderRecord' "

My data type structure is:

HeaderRecord (0..unbounded)

LineRecord (0..unbounded)

TrailerRecord (0..1)


I have defined my FCC as below:


Recordset Structure: HeaderRecord,*,LineRecord,*,TrailerRecord,1


I have kept Record Sequence as "Variable" as File structure would be:

HeaderRecord

LineRecord

HeaderRecord

LineRecord

LineRecord

TrailerRecord


I've gone through many post but still getting the same error. Please help.


Regards,

Aamir


Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Please post the screenshot of the FCC and also the input file.

Br,

Manoj

former_member202642
Participant
0 Kudos
former_member186851
Active Contributor
0 Kudos

Hello Aamier,

Please post the file as well.

iaki_vila
Active Contributor
0 Kudos

Hi Aamir,

If i am not wrong, you have two recordsets:

HeaderRecord ---1

LineRecord   ---1

HeaderRecord  ---2

LineRecord    ---2

LineRecord    ---2

TrailerRecord ---2

Why don't set Recordsets per message with the value *?

Regards.

former_member202642
Participant
0 Kudos

Hi Inaki,

Each Header Record can have one or multiple Line Records.

But Trailer Record can only be one.

Regards,

Aamir

former_member190293
Active Contributor
0 Kudos

Hi Aamir!

Try to set * for your Trailer Record.

Regards, Evgeniy.

manoj_khavatkopp
Active Contributor
0 Kudos

Please post complete Screenshot of your FCC also input file for which you are getting this error.

Answers (0)