# Problem in wm.b2b.edi. envelopeProcess service & looping over GroupHeader Transaction

**URL:** <https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [October 16, 2006, 9:59am UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078 "2006-10-16T09:59:00Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![wmKnight](https://avatars.discourse-cdn.com/v4/letter/w/7feea3/32.png) [@wmKnight](https://techcommunity.softwareag.com/u/wmKnight)\
**Post date:** [October 16, 2006, 9:59am UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/1 "2006-10-16T09:59:00Z")

</div>

Hi ! 🆒  
To process inbound EDI documents , i’ve used the service : wm.b2b.edi.envelopeProcess to consume the entire EDI document  
and convert all of its envelope header segments, including transaction set  
header segments, into an IData object named Values.  
The issue is after invoking the service , i’m getting only ISA records , and i couldn’t see any group segment (GS) and transaction set (ST) segments within ISA segment . I’m getting just ‘code’ field in ISA segments whereas rest of the data goes into unDefData element as follows:

```auto
ISA*00* *00* *01*001325851 *01*050357789M *000110*1425*U*00400*000000035*0*P*>GS*QM*001325851*050357789M*20000110*1425*767*X*004010ST*214*000000035B10*R6514545NA*00000064631M*SCACN1*SF*Big Fred and Little Al ABC CompanyN2*AKA Van Artsdalen MfgN3*800 Any StreetN4*Any Town*MN*55060-0000LX*1AT7*AF*NS***20000110*1341*LTMS1*Any Town*MNMS2*SCAC*0067291*TFL11*14781-55060*SIL11*1*QNAT8*G*L*16880*640*8*E*960SPO*202831 REPL*1022*PC*1008*L*40320SE*14*000000035GE*1*35IEA*1*000000035 
```

How could the document be suitably processed to get GS as well as ST segments under the ISA segment. :rolleyes:  
Due to this problem, i couldn’t loop over ‘Values/ISA/GS’ as well as ‘Values/ISA/ST’ segments ( before using wm.b2b.edi.util.getEDIstring)  
Please help.

Thanks!,  
A Dev Guy … 😕

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [October 16, 2006, 5:08pm UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/2 "2006-10-16T17:08:27Z")

</div>

Hi Dev guy,

The problem would be propably with the data, try out with other data and check it out

Naveen

---

<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:** [October 16, 2006, 7:38pm UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/3 "2006-10-16T19:38:38Z")

</div>

Knight,

This could be a delimiter issue in the data for ISA/GS/ST that is why rest of the data is showing in UndefData field…Please make sure with your source team or check using any edi tool like EDIFECS Specbuilder or ultra editor hex editor if the delimiters are messing up the envelope data for parsing successfully.

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![pradeep\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@pradeep\_kumar](https://techcommunity.softwareag.com/u/pradeep_kumar)\
**Post date:** [October 17, 2006, 2:14am UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/4 "2006-10-17T02:14:06Z")

</div>

knight,

make sure you are not manipulating the edi data. You can probably run the schema directly with your input edi data. In case that is fine, then proceed on with your envelopeProcess.

Rgds,  
Pradeep

---

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [October 17, 2006, 6:41pm UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/5 "2006-10-17T18:41:03Z")

</div>

Are your segment delimiters present in the data? They appear to be missing in the data you posted, though maybe that’s a problem with the posting mechanism. That would explain why the process can’t get beyond the ISA.

Tim

---

<div class="post-metadata">

**Author:** ![wmKnight](https://avatars.discourse-cdn.com/v4/letter/w/7feea3/32.png) [@wmKnight](https://techcommunity.softwareag.com/u/wmKnight)\
**Post date:** [October 23, 2006, 12:27pm UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/6 "2006-10-23T12:27:14Z")

</div>

:rolleyes: I’ve run the schema and it’s running fine…( except for B10 element, for which i’m contacting tech support);  
Still i’m facing the same issue as most of data is falling in ‘undefData’ . ☹ Kindly let me know how segment delimiters can be set appropriately.  
The data i’m using is same as i used earlier.  
Everybody, plz let me know how delimiters are set while invoking envelopeProcess service!  
I’m using ‘\*’ as the only delimiter at present.

🆒  
Cheers,  
A Dev Guy!..

---

<div class="post-metadata">

**Author:** ![Mary\_Tillman](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Mary\_Tillman](https://techcommunity.softwareag.com/u/Mary_Tillman)\
**Post date:** [October 23, 2006, 10:47pm UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/7 "2006-10-23T22:47:54Z")

</div>

A Dev Guy,

The delimiters are determined by the envelopeProcess from the ISA segment. You don’t need to set them. You should see them in /Values/ISA/@delimiters as output from convertToValues.

Just make sure the GS/ST segments are using these delimiters.

Mary

---

<div class="post-metadata">

**Author:** ![wmKnight](https://avatars.discourse-cdn.com/v4/letter/w/7feea3/32.png) [@wmKnight](https://techcommunity.softwareag.com/u/wmKnight)\
**Post date:** [October 26, 2006, 2:22pm UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/8 "2006-10-26T14:22:36Z")

</div>

the delimiters as output are seen as follows :  
@delimiters  
record \*  
field \*  
subfield M

i’ve not specified ‘M’ as delimiter , it came automatically ; and i think, it’s not a delimiter. it’s a part of some data element which got identified as delimiter…  
The issue is that though ISA, GS, ST segments are being recognized and evident in output, the other sub-elements are falling in ‘undefData’ segment… probably, due to this delimiter issue.  
could u plz eleborate to resolve this;  
(The data is same as i posted earlier)…

Thnx,  
A Dev Guy… !🤣

---

<div class="post-metadata">

**Author:** ![Mary\_Tillman](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@Mary\_Tillman](https://techcommunity.softwareag.com/u/Mary_Tillman)\
**Post date:** [October 26, 2006, 7:02pm UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/9 "2006-10-26T19:02:18Z")

</div>

Dev Guy,

It looks like your ISA is incorrect. The subfield delimiter is ISA16 and there should be a record delimiter after that. I see the GS. Also, the ISA 16 fields are fixed length so you should verify that ISA01 = 2 pos., ISA02 = 10 pos., ISA03 = 2, etc. If any of these are incorrect, the delimiters will not be correctly determined.

---

<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:** [October 26, 2006, 8:41pm UTC](https://techcommunity.softwareag.com/t/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/10 "2006-10-26T20:41:56Z")

</div>

Knight,

You should fix the ISA errors and also delimiters to process Envelope compliance errors correctly in the elements as mentioned above.Did you get this sample from your trading partner or you created it manually? If you are trying to create use any tool like SpecBuilder and check for validity.

HTH,  
RMG

---

<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/problem-in-wm-b2b-edi-envelopeprocess-service-looping-over-groupheader-transaction/109078/11 "2021-04-02T15:05:31Z")

</div>


