cancel
Showing results for 
Search instead for 
Did you mean: 

RE: Sender Mail Adapter error (IMAP)-Urgent

nmuralicse
Explorer
0 Kudos

Hi Experts,

As part of Mail-to-File scenario, We are trying to pick mail (with attachement) from gmail and save the attachement as file using file adapter.

We are using payloadswap bean for this purpose and the scenario was working fine when we try to pick any test mail from our gmail inbox.

Problem:

In real time we receive the mail from third party application. so while PI trying to pick the email received from third party application its giving below error.

it could be because the email is in the form of Multipart/Mixed type. Please find email show original format below. is it nested multipart or Normal multipart?

could you please let us know how to handle this in PO

Error in sender Mail adapter: exception caught during processing mail message [31]java.lang.StringIndexOutOfBoundsException: String index out of range: -21

Version : PO 7.4 SP 06

Show original format of the email :

                                                                                                                                                                                                                                                          

Delivered-To:

Received:

X-Received

Return-Path:

Received-SPF:

From:

To: Subject: Text Report: TestAttachment

MIME-Version: 1.0

Content-Type: multipart/mixed;

boundary="----=_Part_93101_154180335.1463932898395"

X-AtTask-Message-ID:

------=_Part_93101_154180335.1463932898395

Content-Type: text/tab-separated-values; charset=us-ascii;

        name= TestAttachment.tsv

Content-Transfer-Encoding: 7bit

Content-Disposition: attachment; filename= TestAttachment.tsv

****TestAttchament file content Here****

------=_Part_93101_154180335.1463932898395

Content-Type: text/html; charset=UTF-8

Content-Transfer-Encoding: 7bit

***Image in HTML  format Here**

------=_Part_93101_154180335.1463932898395--

Thanks

Krishna

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member204100
Active Participant
0 Kudos

Hi Krishna,

could you please copy the whole error message - i mean the complete stack trace?

Are you sure that this error happens on the sender mail adapter side?

Please attach some screenshots about the audit log too.

Thanks.


Best Regards,

Viktor

nmuralicse
Explorer
0 Kudos

Hi

Yes its in sender Mail channel. 🙂

Please find the screenshot for your reference.

This error we are getting when we try to pick multipart/mixed email message.

Thanks,

Murali

former_member204100
Active Participant
0 Kudos

Hi Murali,

i think it would be a good idea to look into the default trace file too. Hopefully you will see more details about the error message - in this case copy it here please.

Otherwise increase the severity level of the mail adapter in NWA to DEBUG and hopefully this way we will see more details about this error.

Best Regards,

Viktor