cancel
Showing results for 
Search instead for 
Did you mean: 

Flat File Conversion Error: Unable to initialize communication channel

Former Member
0 Kudos

Dear experts.

I have a file to flat file scenario. I just wanted to test this first because it's the first time. I followed this blog: /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

I get this message: Channel has not been correctly initialized and cannot process messages. I looked around on the forum and in other blogs, and it seems something is wrong with my Content Conversion Parameters. Could you please advise?

The message is a small customer test message:

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_TEST xmlns:ns0="urn://xi/csr/customer">

<Customer_File>

<Customer>

<Name>xxx</Name>

<Last>xxxxxxxx</Last>

</Customer>

</Customer_File>

</ns0:MT_TEST>

The parameters I am using are:

Recordset structure: Customer_File,Customer

Customer.addHeaderLine: 0

Customer.fieldSeparator: #

Customer_File.fieldSeparator: 'nl'

Customer.endSeparator: 'nl'

The mapping I am using is one-to-one.

This is not working for me...

Furthermore, I would like to set the Name and Last tag to set field lengths. Is this possible for these tags??

Thanks in advance.

*Will reward points for helpful answers

Accepted Solutions (1)

Accepted Solutions (1)

GabrielSagaya
Active Contributor
0 Kudos

add the parameter

Customer_File.endSeparator: 'nl'

Former Member
0 Kudos

Hi Gabriel,

Thanks for your reply, this works.

I would also like the tags Name and Last to be of fixed length, without a separator. Can I just add these parameters?? Is this possible on these values?

Cheers!

Former Member
0 Kudos

hi..

In this case u can use field fixed lengths

like

Customer.fieldFixedLengths 2,5

may helpful

THanks

MAnas

Former Member
0 Kudos

Hi Manas,

Thanks

I fixed the fixed field lengths issue with the following parameter:

Customer.fieldFixedLengths: 10,20

Thanks for your replies.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

PLz try with the following steps:

chk the occurence of customer.

if the customer occurence is (0-------unbounded) then

ur recordset structure is Customerfile,Customer*

may helful.

THanks

MANas