cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Mail Adapter

Former Member
0 Kudos

Hi Experts,

I am working in Mail to Idoc Scenario.

When the mail is sent from X user it's not been picked up by PI. But, when I forward the same mail and send it by using some other userID, its being picked up by Pi.

The error displayed in RWB is:

com.sap.aii.messaging.lang.BinaryIndexOutOfBoundsException:Binary index out of range :-2

while troubleshooting, when I checked "Generate Fetch Report", It was failing with the error "No Receiver_BE"

Please suggest.

Thanks & Regards,

Sushama

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sushama,

I think when you forward the email, the boundarys are changed by your mail client, thats why it works, when

the mail is forwarded first..

There is a SAP Note that describes the "index out of range -2" problem:

when the sender mail adapter processes mails with multipart mime content type

and boundary as "-", below exception occurs:

exception caught during processing mail message [1]

com.sap.aii.af.sdk.xi.lang.BinaryIndexOutOfBoundsException:

Binary index out of range: -2

Apply the following patch: Note 1362573 - Sender Mail Adapter - Multipart boundary "-" issue

and it should work in the first place.

regards,

Daniel

Edited by: Daniel Rexter on Aug 25, 2010 9:26 PM

Former Member
0 Kudos

Thanks Daniel,

I am checking that. I will update you if it works.

Regards,

Sushama

Former Member
0 Kudos

Hey Daniel,

THanks a lot!!

It's working!!

Regards,

Sushama

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I have applied the patch as per the SAP note..the sender file adapter having adapter modules are failing with the Mapping exception??

The adapter framework got affected from the Patch??

The module needs to be redeployed?? Patch for File adapter has to be applied separately??

Please suggest.

Thanks,

Sushama

Edited by: sushama pandey on Oct 5, 2010 6:04 AM

Former Member
0 Kudos

There was a bug in the java module code..its working now..thanks all!!

Former Member
0 Kudos

Hi,

When the mail is sent from X user it's not been picked up by PI. But, when I forward the same mail and send it by using some other userID, its being picked up by Pi

it means that the Mail cannot be picked from certain mail ID. Is this is the user u have configured in Sender Mail Adapter.. or any one...

Mail adapter can pick the mails only from the User Inbox for which u have configured...

Babu

Former Member
0 Kudos

Hi Babu,

Thanks for the inputs.

Authentication user name is differnt but the authentication user name is the group assigned to a particular set of users. Say suppose HCL NZ is a group having users like: sushama, smitha etc. so , its unable to recognize mails from sushama or smitha

This is the problem.

Please suggest

'Thanks,

Sushama

Former Member
0 Kudos

Hi,

U cannot give a Group name..

U can give only the Mail Box used name and passwd..

please hava a look in Sender Mail Config Documentation..in sap help

Babu

Former Member
0 Kudos

Hi Sushama,

You cannot assign a User group. Specify the user and the Password for accessing the server.

Please refer the sender Mail adapter configuration.

http://help.sap.com/saphelp_srm40/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm

Thanks,

Former Member
0 Kudos

Hi,

User Name: Its nothing but the User name for the mail server.

Once the PI finds any mail in the user inbox, it must be able to pick?

Its unable to pick the mails from one particular user inside the user inbox..

Any Suggestions?

Thanks,

Sushama

Edited by: sushama pandey on Aug 25, 2010 10:27 AM