cancel
Showing results for 
Search instead for 
Did you mean: 

fromFile vs fromConfiguration (messageTransferBean)

itabhishek9
Participant
0 Kudos

Hi SDNites,

Sender file has header line and then the records. In order to read this in messageTransferBean, paramter fromFile has to be used but it will then create the payload tags using the file header line. But I wanted to create tags using the data type that have been defined in configuration. So I have used fromConfiguration but this does not allow me to skip the header line from being read. Tried to use offset as well but didn't work. Any pointers on the same will be of great help.

Regards,

Abhi

Accepted Solutions (0)

Answers (6)

Answers (6)

itabhishek9
Participant
0 Kudos

@Hareesh - Can you please elaborate how to do that as I have SFTP on sender side and FTP without FCC on receiver side.

@Suman - Above mentioned para are for Structplaintoxml and my scenarion is simpleplain2xml.

Regards,

Abhi

former_member184720
Active Contributor
0 Kudos

You can simply apply the below logic on the root node.

header(recordset)

suman_saha
Contributor
0 Kudos

Hi,

In messageTransformBean you can use xml.documentsSkipFirstRows = 1

or,  xml.documentOffset=1

Regards,

Suman

itabhishek9
Participant
0 Kudos

Content Conversion using Beans and not the conventional File FCC way.

Former Member
0 Kudos

Hi,

Are you using content conversion at all?

Regards,

Jannus Botha

itabhishek9
Participant
0 Kudos

MessageTransformBean.

former_member184720
Active Contributor
0 Kudos

Did you try with?

xml.documentSkipFirstRows=1

itabhishek9
Participant
0 Kudos

Yes. It will not work as my scenario is Simpleplain2xml and the above mentioned para is for Structplain2xml.

former_member184720
Active Contributor
0 Kudos

In that case you can ignore the first record in the mapping right? Any issue with that approach?

suman_saha
Contributor
0 Kudos

messageTransferBean or MessageTransformBean?