cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Sender Channel error " java.lang.StringIndexOutOfBoundsException""

manikandan_shanmugam3
Active Participant
0 Kudos

Dear All,

Scenario:File to IDOC

File Type: Fixed Length

I am getting below error in Sender Channel.

Error "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'Item':java.lang.StringIndexOutOfBoundsException"

Note:We are using header and Item.Header is not repating and Item should repeate N times.we are using the KeyField Name for both header and Item.

Kindly suggest me the Parameter to use for the sender channel.

Edited by: manikandansit on Jan 17, 2011 12:53 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi There,

Please check your content conversion parameters. Problem is with your fixed length content conversion.

Thanks,

Shweta Khade

manikandan_shanmugam3
Active Participant
0 Kudos

Dear All,

Thanks for your suggestions.

the issues has been resolved.

there are so many spaces between the each field data in the source file and i was using the value as SPACE for the parameter Name.fieldSeparator and it taken each space as a data or something else. finally i had removed this parameter and Interfaces works fine now.

Thanks

Former Member
0 Kudos

Hi Mani,

The issues seems to with the Content conversion also. Ref: 1476082, 1163293.

Please provide the structure, so will be able to help you in this regard.

Thanks,

manikandan_shanmugam3
Active Participant
0 Kudos

HI hareen,

below is the structure of the sender.

DT

->RecordSet

->Header

->Field1

.

.

->Field8

->Item

->Field1

.

.

->Field10

Field1 is the Keyfield for both the Header and Item.

Former Member
0 Kudos

Hi Mani,

The KeyField Value should be different for both the Header and Item. Try to keep different values and run the scenario.

Thanks,

Former Member
0 Kudos

Hi Mani,

You might be using fixed length content conversion at the sender and the payload is not satisfying one of the criteria.

Please check.

Regards,

Pranav

Former Member
0 Kudos

Hi,

Check the input you are passing if it is of expected and if you are doing any content conversions then check the configurations you have provided..

looks like either input data or config is not in expected format...(lenght of data has been exceeded than provided as the error means..)

HTH

Rajesh