Skip to Content
Author's profile photo Ravikanth Talagana

How to configure Email Alerts for scenarios from Ariba Supplier Network to SAP ERP?

Recently, we have encountered an issue wherein, a few Invoices created on the Ariba Supplier Network were not transferred over to our SAP ERP system.

The SAP Netweaver PI  Ariba Network Sender adapter was configured to pick these invoices in cXML format and post them as IDOCs in our SAP ERP system.

However, in this case, there were some issues with the content of the invoices and the SAP PI AN Adapter was unable to pick up from the Ariba Supplier Network,

The default trace files did provide some information on why the sender adapter was unable to pick up the invoice, but the business wanted a more “visible” process of notification of these type of errors.

For other errors like mapping and receiver connectivity issues, we already have the standard alert configuration in SAP PI, but in this case the standard alert mechanism would not be helpful, as there is no message id created at the point of failure.

Error messages look something like this:

[Error Level] 2[Error Code] ERR302[Error Desc] Get Pending Transaction Failed[Error Message] com.ariba.asc.connector.util.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedlycom.ariba.asc.connector.exception.GetPendingTransactionException: com.ariba.asc.connector.util.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly

at com.ariba.asc.connector.controller.tasks.PendingDataDownload.downloadPendingData(

at com.ariba.asc.connector.controller.tasks.PendingDataDownload.processWithNodeLock(

at com.ariba.asc.connector.controller.tasks.PendingDataDownload.downloadbyChannel(




at Method)



Caused by: com.ariba.asc.connector.util.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly

at com.ariba.asc.connector.util.fileupload.MultipartStream.readBoundary(

at com.ariba.asc.connector.controller.handler.PendingDataDownloadHandler.processAttachmentsIfAny(

at com.ariba.asc.connector.controller.handler.PendingDataDownloadHandler.handleDataResponse(

at com.ariba.asc.connector.controller.tasks.PendingDataDownload.downloadPendingData(

… 8 more

Luckily for us, there is an option that is available to enable e-mail notifications for scenarios that are initiated from Ariba Network . I have found very little help around this topic and hence wanted to share the detailed set-up.

Here are the steps to achieve these notifications.

  1. Edit the sender “AribaNetworkAdapterSAPNetweaver” communication channel.  (I will not cover the remaining configuration steps)
  2. Scroll down to find the check box “Email Notification”.
  3. Provide the  email server host name without the “smtp” prefix. This is important, i made the mistake of including the prefix  “smtp” and took some time to realize that it is not needed 🙂
  4. Provide the Sender and Receiver email address as per your requirement.

Sounds pretty straight forward , eh? Well, on hind-sight , yes!! 😀

Ariba Network Sender Adapter Email Notifications.PNG

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      Hi Ravi,

      Very nice blog. Good to know that Ariba comm channel can trigger alert and notify that the cXML has issue that is preventing the cXML from being fetched.



      Author's profile photo Vishali Aripaka
      Vishali Aripaka

      Hi Ravi,

      We have same issue and we have set the same property but we are not receiving any email notifications and am attaching screenshot of the same for your reference.


      I request you to share your inputs from above screenshots.



      Author's profile photo Manoj K
      Manoj K

      Are u able to trigger a mail via mail adapter using the same values?