# Duplicate checking

**URL:** <https://techcommunity.softwareag.com/t/duplicate-checking/108445>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [July 8, 2005, 1:24am UTC](https://techcommunity.softwareag.com/t/duplicate-checking/108445 "2005-07-08T01:24:40Z")\
**Posts on this page:** 6\
**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:** [July 8, 2005, 1:24am UTC](https://techcommunity.softwareag.com/t/duplicate-checking/108445/1 "2005-07-08T01:24:40Z")

</div>

Hi,

I have a requirement where in i have to check for duplicate documents by sender+receiver+GroupControlNumber.so i have selected the pre-processing action “check for duplicates by sender,receiver and documentID”,which does the work and creates an error varaible Saving in the bizdoc.  
the thing is i have to compare the current transaction with the previous transaction which has the same sender+receiver+groupcontrolnumber.depending on that i have to do different processing for each condition.(splitoption is group)  
Can anyone tell me how to do this?

ramesh.

---

<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:** [July 8, 2005, 2:48am UTC](https://techcommunity.softwareag.com/t/duplicate-checking/108445/2 "2005-07-08T02:48:09Z")

</div>

You can use the services in the wm.tn.query folder to retrieve previous documents.

---

<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:** [July 8, 2005, 6:45pm UTC](https://techcommunity.softwareag.com/t/duplicate-checking/108445/3 "2005-07-08T18:45:47Z")

</div>

Rob,  
As you have said,i used createDocumentQuery and documentQuery of wm.tn folder.This identified the document but i cannot see the EDI data anywhere in the pipeline.do i have to call any other service to get the data?

Thanks,  
ramesh

---

<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:** [July 8, 2005, 7:04pm UTC](https://techcommunity.softwareag.com/t/duplicate-checking/108445/4 "2005-07-08T19:04:46Z")

</div>

Rob,

I got it using wm.tn.doc:view and bytesToString.wm.tn.doc:view takes internalId as the input and returns the bizdoc.

Thanks,  
ramesh.

---

<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:** [July 8, 2005, 11:05pm UTC](https://techcommunity.softwareag.com/t/duplicate-checking/108445/5 "2005-07-08T23:05:06Z")

</div>

That’s exactly the right process. Glad you got it working.

---

<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/duplicate-checking/108445/6 "2021-04-02T15:05:14Z")

</div>

Closed on April 2, 2021, 3:05pm UTC


