# Resubmiting Failed Document

**URL:** <https://techcommunity.softwareag.com/t/resubmiting-failed-document/108612>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [April 27, 2005, 12:57am UTC](https://techcommunity.softwareag.com/t/resubmiting-failed-document/108612 "2005-04-27T00:57:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramesh\_Sambandan](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@Ramesh\_Sambandan](https://techcommunity.softwareag.com/u/Ramesh_Sambandan)\
**Post date:** [April 27, 2005, 12:57am UTC](https://techcommunity.softwareag.com/t/resubmiting-failed-document/108612/1 "2005-04-27T00:57:49Z")

</div>

Hi all,

I am doing edi outbound.  
I am getting idoc from Sap through ALE using sap adapter.  
after i got the idoc i am routing that idoc to TN.  
From there it is routing to particular partner flow service to convert that idoc to EDI to send that out.  
I got everything fine till here.  
My question is if the idoc has any errors, my error handling mechanism is throw an error email to admin.  
so how i need to implement , where to correct the idoc in webMethods depending on the errors and resubmitting the corrected idoc.

I read all the documentation, but i did not get any idea.  
Is there anybody to help me out on this issue.

Thanks in advance,  
Ramesh

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [April 27, 2005, 1:46am UTC](https://techcommunity.softwareag.com/t/resubmiting-failed-document/108612/2 "2005-04-27T01:46:10Z")

</div>

Ramesh,

Your query related to developing ErrorHandling framework,looks you guys are using TN in the implementation so there lot of advantages like doing reprocess/resubmit the failed documents.If Programmatically then there are various TN builtin services exists for Querying TN DB,check document UserStatus/ProcessingStatus,retrying failed Tasks etc…

Reading this doc TradingNetworksBISReference.pdf documentation,this will help when developing TN framework.

Also check this link,it contains diff archives regarding Exceptionhandling,framework related etc…

[url=“[wmusers.com](http://www.wmusers.com/ezine/archives.shtml)”][wmusers.com](http://www.wmusers.com/ezine/archives.shtml%5B/url%5D)

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [April 27, 2005, 1:52am UTC](https://techcommunity.softwareag.com/t/resubmiting-failed-document/108612/3 "2005-04-27T01:52:24Z")

</div>

Also check the (pub.event) folder services for doing ExceptionHandling by generating alerts emails incase of document processing/mapping failures or transient errors etc…

---

<div class="post-metadata">

**Author:** ![vandem](https://avatars.discourse-cdn.com/v4/letter/v/a88e4f/32.png) [@vandem](https://techcommunity.softwareag.com/u/vandem)\
**Post date:** [April 27, 2005, 3:21am UTC](https://techcommunity.softwareag.com/t/resubmiting-failed-document/108612/4 "2005-04-27T03:21:15Z")

</div>

We use TN for over 50 different integrations between SAP and partner systems, and use two main mechanisms for error handling / notification:

1. use try/catch blocks in IS code, so any error is caught and an appropriate service (resubmit, send eMail to users/admin etc) is invoked

2. run hourly/daily scheduled services in IS to interrogate TN database for Bizdocs with errors, based on various Sender/Receiver/Processing Status/User Status/Date combinations, and run appropriate services (resubmit, send eMail to users/admin etc) for each Bizdoc or group of Bizdocs selected.

---

<div class="post-metadata">

**Author:** ![reamon](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@reamon](https://techcommunity.softwareag.com/u/reamon)\
**Post date:** [April 27, 2005, 5:02am UTC](https://techcommunity.softwareag.com/t/resubmiting-failed-document/108612/5 "2005-04-27T05:02:47Z")

</div>

“so how i need to implement , where to correct the idoc in webMethods depending on the errors and resubmitting the corrected idoc.”

Integration Server/Trading Networks aren’t designed to allow user editing of documents and don’t provide any facilities out-of-the-box to do so. And SAP doesn’t let you change some types of documents once they’re in a particular state (e.g. can’t make changes to generate a new ship notice or invoice).

You’ll need to come up with your own process for modifying the IDoc or EDI transaction set yourself. One possibility is to manually retrieve the content of the IDoc or EDI from TN, if you’ve persisted it there, and use a text editor to make modifications–not fun but possible–then submit this new, edited document to the appropriate service.

Probably not the answer you’re looking for but neither SAP nor webMethods provide a user-friendly way to do this.

---

<div class="post-metadata">

**Author:** ![gupta\_r.17495](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@gupta\_r.17495](https://techcommunity.softwareag.com/u/gupta_r.17495)\
**Post date:** [April 27, 2005, 5:15am UTC](https://techcommunity.softwareag.com/t/resubmiting-failed-document/108612/6 "2005-04-27T05:15:37Z")

</div>

Rob i agree with you.

Also as Martin described mostly everyone follows that process only.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:05pm UTC](https://techcommunity.softwareag.com/t/resubmiting-failed-document/108612/7 "2021-04-02T15:05:18Z")

</div>


