on 06-02-2016 6:46 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.