cancel
Showing results for 
Search instead for 
Did you mean: 

Add Header Line tot he output File

0 Kudos

Hi,

Proxy to File Senario.

Details records are coming through proxy.

I need to add a static header line in the file that is created..

The Header line is something Like this :- "SSN";"UPI";"EFF_DATE";"STATUS";"STATUS_ACTION_CD";"PAY_CONTINUATION";"LASTNAME";"FIRSTNAME";"MI";"NAME_SFX";"LOC_CODE";"EMP_CAT";"

The configuration that i did in Content Conversion:-

Recordset :- HEADER,ROOT

HEADER.addHeaderline : 1

HEADER.headerline : "SSN";"UPI";"EFF_DATE";"STATUS";"STATUS_ACTION_CD";"PAY_CONTINUATION";"LASTNAME";"FIRSTNAME";"MI";"NAME_SFX";"LOC_CODE";"EMP_CAT";"

ignoreRecordsetName : true

ROOT.fieldSeparator : ;

ROOT.endSeparator : 'nl'

<b>But the error in Communication channel monitoring is : -</b>

Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'HEADER.fieldFixedLengths' or 'HEADER.fieldSeparator' is missing....

So Plz help me out in this.....

Thanks

Harpreet

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Harpreet,

You can pass the static header content in your message mapping ....to the target header field..

and then use a normal FCC to print out the structure...

Regards,

Sushil H.

Answers (3)

Answers (3)

0 Kudos

Thanks People ..... my problem is solved..!!!

Former Member
0 Kudos

Hello Harpreet,

HEADER.fieldFixedLengths ' '.

Use this paramter your issue should be fixed.

Regards,

0 Kudos

Thanks Sushil for ur prompt response....

but i cannot do it in mapping.... coz i cannot change the DataType .... which will again result in regeneration of the proxy....which m not allowed to..

I have to do it in Configuration..!!