cancel
Showing results for 
Search instead for 
Did you mean: 

File Content Conversion works in FileAdapter But not in SFTP

0 Kudos

Hello SAP PI gurus

I am working on a scenario that needs file content conversion. The sender channel is an SFTP channel.

For testing purpose I tried using FILE adapter and the content coversion worked without any problem.

However when I tried using the same file content conversion parameters with SFTP, it is failing with the following error after picking up the file.

======================================================================

Exception
received: java.lang.ArrayIndexOutOfBoundsException: while trying to load from
index -1 of an object array with length 452, loaded from field
java.util.ArrayList.elementData of an object loaded from local variable 'this'

========================================================================


I am using the same exact payload also.

I have attached the screen shot of the File Content Conversion Settings and the sample payload.

Any suggestiongs or recommendations will be highly appreciated.


JFYI : I am using PI 7.4

Thanks
Ram

Accepted Solutions (0)

Answers (3)

Answers (3)

sahithi_moparthi
Contributor
0 Kudos

Hi,

  EndSeparator should be in Quotes.

                  HEADER.endSeparator          'nl'

ridvan_polat
Participant
0 Kudos

Hi Ram,

Are you using any udf in your message mapping? It seems because of some custom codes.

If so can you test the mapping with the payload data you attached and check whether it is same error.

You can refer this blog,

Regards,

Ridvan Polat

asdasd_asdasd
Active Participant
0 Kudos