cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Header line in Receiver File adapter

GabrielSagaya
Active Contributor
0 Kudos

Hi,

I have an issue in Receiver File adapter with multiple header lines. I am able to get only 1 header lines in the receiver file but not multiple header lines with 'nl' since it is static in file mode

[CommunityTag:Header]

empNo,EmpName,Age

[CommunityTag]

I tried with the below in content conversion one as below with no luck

Root.addHeaderLine=1

Root.headerLine=[CommunityTag:Header] 'nl' empNo,EmpName,Age 'nl' [CommunityTag]

Root.fiedSeparator=,

Root.endSeparator='nl'

I am getting the Header line as same row as static text.

Can you advise this.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gabriel, I suggest to produce the header lines from additional nodes in the message payload. That means you need to modify the data type of the target message in order to generate an extra structure in the payload. Use constants in message mapping to generate the header column names, e.g.


<Header>
  <H1>CommunityTag:Header</H1>
  <H2>empNo,EmpName,Age</H2>
  <H3>CommunityTag</H3>
</Header>

In content conversion you have to convert the Header row with

Header.endSeparator='nl'

You won't need parameter addHeaderLine anymore then.

Regards, Martin