# Duplicate ST control # Generated

**URL:** <https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [November 19, 2008, 4:19am UTC](https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763 "2008-11-19T04:19:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![prabhukanthi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/prabhukanthi/32/26121_2.png) [@prabhukanthi](https://techcommunity.softwareag.com/u/prabhukanthi)\
**Post date:** [November 19, 2008, 4:19am UTC](https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763/1 "2008-11-19T04:19:18Z")

</div>

Hi,

We are using wM6.5 and few days ago we had some issue with the EDI 810s that got generated in TN. We had duplicate ST control # generated for one partner. We have three different accounts for that partner and doing all outbound transaction with different Sender and receiver combinations. We have same ExternallD “XYZ” for all the three account ,so we are supposing that ST control Number got duplicated because of three different combination of sender and receiver.  
  
We know that ST control numbers are generating at run time on the basis of receiver and sender combination using service ’ wm.b2b.editn.batch:getControlNumber ’  
  
Does anyone have any idea why the ST control# got duplicated for the same account# and same sender/receiver combination. Please let me know.  
  
Thanks in Advance

---

<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:** [November 19, 2008, 5:18am UTC](https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763/2 "2008-11-19T05:18:50Z")

</div>

wm.b2b.editn.batch:getControlNumber is not normally used for generating ST control numbers. It is used for interchange (ISA) and group (GS) numbers. Typically (but not always) the ST numbers start at 1 within a new group and increment by 1.

Are you using the batchProcess service? It will manage the ST control number per the inputs you provide.

---

<div class="post-metadata">

**Author:** ![prabhukanthi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/prabhukanthi/32/26121_2.png) [@prabhukanthi](https://techcommunity.softwareag.com/u/prabhukanthi)\
**Post date:** [November 19, 2008, 5:37am UTC](https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763/3 "2008-11-19T05:37:22Z")

</div>

Yes, you’re right. No we are not using the batchProcess service.

---

<div class="post-metadata">

**Author:** ![prabhukanthi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/prabhukanthi/32/26121_2.png) [@prabhukanthi](https://techcommunity.softwareag.com/u/prabhukanthi)\
**Post date:** [November 19, 2008, 5:51am UTC](https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763/4 "2008-11-19T05:51:15Z")

</div>

We are using the following services in our generic map.

wm.b2b.editn.batch:getControlNumber (to get group and Interchange ctrl#)  
wm.b2b.edi.util:addGroupEnvelope (to add group envelope)  
wm.b2b.edi.util:addICEnvelope (to add interchange envelope)

---

<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:** [November 19, 2008, 6:00am UTC](https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763/5 "2008-11-19T06:00:17Z")

</div>

Is the ST control number that is duplicated? How are you setting that? Or is another control number being duplicated. Normally, duplicate ST control numbers are not a problem–unless the duplicate is within the same group.

You don’t need to call getControlNumber separately. The add\*Envelope will do that based on your inputs.

---

<div class="post-metadata">

**Author:** ![prabhukanthi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/prabhukanthi/32/26121_2.png) [@prabhukanthi](https://techcommunity.softwareag.com/u/prabhukanthi)\
**Post date:** [November 19, 2008, 8:59am UTC](https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763/6 "2008-11-19T08:59:24Z")

</div>

The ST control numbers were duplicated for 3 sets of documents, total of 148 as below;Do not know how this ST numbers are generated. Please see.

[B][FONT=Arial][SIZE=2][COLOR=#0000ff]

Date[/b][/color][/size][/font]

[B][FONT=Arial][SIZE=2][COLOR=#0000ff]

Document ID  
(810)[/b][/color][/size][/font]

[B][FONT=Arial][SIZE=2][COLOR=#0000ff]

ST Control #[/b][/color][/size][/font]

[B][FONT=Arial][SIZE=2][COLOR=#0000ff]

Comments[/b][/color][/size][/font]

[B][FONT=Arial][SIZE=2][COLOR=#0000ff]

Total #  
of Invoices[/b][/color][/size][/font]

[B][FONT=Arial][SIZE=2][COLOR=#0000ff]

Duplicate #  
of Invoices[/b][/color][/size][/font]

[B][FONT=Arial][SIZE=2][COLOR=#0000ff]

From[/b][/color][/size][/font]

[B][FONT=Arial][SIZE=2][COLOR=#0000ff]

to[/b][/color][/size][/font]

2008-10-23 10:23:40.513  
'0000627589  
[FONT=Arial][SIZE=2]'231023447[/size][/font]  
[FONT=Arial][SIZE=2]'231023546[/size][/font]  
[FONT=Arial][SIZE=2][COLOR=#ff0000]Original[/color][/size][/font]  
[B][FONT=Arial][SIZE=2]

100[/b][/size][/font]

2008-10-23 10:23:45.693  
'0000000915  
[FONT=Arial][SIZE=2]'231023357[/size][/font]  
[FONT=Arial][SIZE=2]'231023456[/size][/font]  
ST Control # 231023447 to 231023456 got [FONT=Arial][SIZE=2][COLOR=#ff0000]duplicated[/color][/size][/font] as present in DocID 0000627589 as well.  
   
[B][FONT=Arial][SIZE=2]

100[/b][/size][/font]

[B][FONT=Arial][SIZE=2]

10[/b][/size][/font]

2008-10-23 10:23:50.67  
'0000078243  
[FONT=Arial][SIZE=2]231023457[/size][/font]  
[FONT=Arial][SIZE=2]'231023556[/size][/font]  
ST Control # 231023457 to 231023546 got [FONT=Arial][SIZE=2][COLOR=#ff0000]duplicated[/color][/size][/font] as present in DocID 0000627589 as well.  
[B][FONT=Arial][SIZE=2]

100[/b][/size][/font]

[B][FONT=Arial][SIZE=2]

90[/b][/size][/font]

2008-10-30 08:37:24.067  
'0000178008  
[B][FONT=Arial][SIZE=2]

300837764[/b][/size][/font]

[FONT=Arial][SIZE=2]'300837863[/size][/font]  
[FONT=Arial][SIZE=2][COLOR=#ff0000]Original[/color][/size][/font]  
[B][FONT=Arial][SIZE=2]

100[/b][/size][/font]

2008-10-30 08:37:27.897  
'0000906920  
[FONT=Arial][SIZE=2]'300837864[/size][/font]  
[FONT=Arial][SIZE=2]'300837911[/size][/font]  
[FONT=Arial][SIZE=2][COLOR=#ff0000]Original[/color][/size][/font]  
[B][FONT=Arial][SIZE=2]

48[/b][/size][/font]

2008-10-30 08:37:42.863  
'0000016364  
[FONT=Arial][SIZE=2]'300837667[/size][/font]  
[FONT=Arial][SIZE=2]'300837766[/size][/font]  
ST Control # 300837764 to 300837766 got [FONT=Arial][SIZE=2][COLOR=#ff0000]duplicated[/color][/size][/font] as present in DocID 0000178008 as well.  
   
[B][FONT=Arial][SIZE=2]

100[/b][/size][/font]

[B][FONT=Arial][SIZE=2]

3[/b][/size][/font]

2008-10-30 08:38:00.245  
'0000807081  
[FONT=Arial][SIZE=2]'300837867[/size][/font]  
[FONT=Arial][SIZE=2]'300837966[/size][/font]  
ST Control # 300837867 to 300837911 got[FONT=Arial][SIZE=2][COLOR=#ff0000] duplicated[/color][/size][/font] as present in DocID 0000906920 as well.  
   
[B][FONT=Arial][SIZE=2]

100[/b][/size][/font]

[B][FONT=Arial][SIZE=2]

45[/b][/size][/font]

[FONT=Arial][SIZE=2]

[/size][/font]

---

<div class="post-metadata">

**Author:** ![prabhukanthi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/prabhukanthi/32/26121_2.png) [@prabhukanthi](https://techcommunity.softwareag.com/u/prabhukanthi)\
**Post date:** [November 19, 2008, 9:15pm UTC](https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763/7 "2008-11-19T21:15:05Z")

</div>

Hi,

Any Idea how the ST crtl#s got duplicated in 3 different set of document as above. Also how is this generated.

---

<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:** [November 19, 2008, 9:57pm UTC](https://techcommunity.softwareag.com/t/duplicate-st-control-generated/109763/8 "2008-11-19T21:57:55Z")

</div>

I’d need to look at the services that are creating these documents to be able to determine what might have happened. Normally the ST control number field is set when the IS document is mapped–e.g. when creating the 810 as an IS document. ST02 if I’m remembering from memory correctly.

You probably want to open a service request with wM tech support and they can help you track it down remotely.

---

<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-st-control-generated/109763/9 "2021-04-02T15:05:51Z")

</div>


