cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with file sender adapter and endSeparator

Former Member
0 Kudos

Hy,

have the following situation: with a sender File adpater i have to receive the same structure of data but in two mode.

1) First mode : each recorset is defined as a file line

Example (not fields separator):

fielda,fieldb,fieldc

field2a,field2b,field2c

2) Second mode : recorset of the same line without end

separator and fieldseparator

Example (not fields separator):

fielda,fieldb,fieldc,field2a,field2b,field2c,......

I configured the adapter as follow.

structure.fieldFixedLengths 1,2,3

structure.fieldNames field1,field2,field3

structure.lastFieldsOptional YES

structure.processFieldNames fromConfiguration

structure.endSeparator 'nl'

PROBLEM

Mode 1) works but mode 2) doesn't work.

Could anyone solve my problem??

Thank's

Mati

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Try using two differnt record structure name for each mode.for eg give it as structure1 and structure2.then u give the content conversion parameter for both the recordset depending on ur requirement i.e, with and without end seperator.

regards

jithesh

STALANKI
Active Contributor
0 Kudos

what do you mean by mode?Did u configure two adapters or one?

STALANKI
Active Contributor
0 Kudos

Can you please paste the error from RWB in the adapter monitoring?Is the CC happening and were u able to see messages?

Former Member
0 Kudos

Hy,

I see no error in Monitoring. The adapter read just the first sequence of character and not the second.

Cheers

MAti