# wm.b2b.edi:envelopeProcess returns an Error Code DA-0010

**URL:** <https://techcommunity.softwareag.com/t/wm-b2b-edi-envelopeprocess-returns-an-error-code-da-0010/173267>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [November 6, 2013, 8:07pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-envelopeprocess-returns-an-error-code-da-0010/173267 "2013-11-06T20:07:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![My\_Online\_Articles](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@My\_Online\_Articles](https://techcommunity.softwareag.com/u/My_Online_Articles)\
**Post date:** [November 6, 2013, 8:07pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-envelopeprocess-returns-an-error-code-da-0010/173267/1 "2013-11-06T20:07:31Z")

</div>

Hi Gurus:

I have consulted and followed several of the User Guides out there and read lots of messages here, but did not find someone who had such a simple problem as I.

In my flow service I am using the “getFile” service (and have tried both Bytes and Stream for my load as) to load a simple small EDI file of type X12 4010 850.

When I use that output as my input into wm.b2b.edi:envelopeProcess for “edidata” I am getting an “Unrecognized EDI data” error message as an output (DA-0010).

How come? Is there something I’m missing here. Do I need a service in between to do something to the file so it can be used in the envelopeprocess?

If my file does happen to be not of an EDI 850 standard, a link to one could be a first starting point, since I have already tried loading several from different places to no avail.

Thanks for your time and patience with a newber.  
Moa

---

<div class="post-metadata">

**Author:** ![Tong\_Wang](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/tong_wang/32/410_2.png) [@Tong\_Wang](https://techcommunity.softwareag.com/u/Tong_Wang)\
**Post date:** [November 6, 2013, 10:46pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-envelopeprocess-returns-an-error-code-da-0010/173267/2 "2013-11-06T22:46:52Z")

</div>

you’d better provide the EDI, so gurus can check what’s wrong with it, or something else.

---

<div class="post-metadata">

**Author:** ![rmg](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@rmg](https://techcommunity.softwareag.com/u/rmg)\
**Post date:** [November 6, 2013, 11:06pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-envelopeprocess-returns-an-error-code-da-0010/173267/3 "2013-11-06T23:06:55Z")

</div>

Yes some thing would be wrong the edidata file you loaded missing delimiters or format issues etc…many more for the unrecognized error.

Please upload the 850 file you got:

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![My\_Online\_Articles](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@My\_Online\_Articles](https://techcommunity.softwareag.com/u/My_Online_Articles)\
**Post date:** [November 6, 2013, 11:30pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-envelopeprocess-returns-an-error-code-da-0010/173267/4 "2013-11-06T23:30:53Z")

</div>

So, I did squeeze in between a new service pub:bytesToSring and I got past the DA-0010 error.

So, now where (which service) do I specify delimiters so it knows how to parse this EDI?

The following is my Flow Service:

1. getTemplate (works)
2. getFile (works)
3. bytesToString (works)
4. envelopeProcess (different error now - delimiters?)
5. getEDIString (not yet reached)
6. convertToValues (not yet reached)
7. segment\_reading loop (not yet reached)

Thanks guys again for the responses and patience.

## Oh and here is the EDI 850.

## ISA_00_ _00_ _08_9251750000 _08_1234567890 _030627_1304_U_00401_000001403_0_P_\>~ GS_PO_8019721193_1234567890_20030627_1304_1403_X_004010~ ST_850_01403001~ BEG_00_SA_548177\*\*20030627~ REF_AN_547794~ PER_BD_JOHN JONES_TE_5552225555~ FOB_PB~ DTM_002_20030705~ DTM_118_20030704~ PKG_ **01~ TD5** HOUR CR/T~ N9_AH_548177~ MSG_THIS PURCHASE ORDER IS SUBJECT TO THE SAME TERMS AND~ MSG_CONDITIONS AS SAFEWAY PURCHASE ORDER FORM 1030~ MSG_PICKUP NO. E450562~ N1_ST_SAFEWAY INC_9_0091372092527~ N2_Tracy Produce~ N3_16900 West Schulte Road~ N4_Tracy_CA_95376~ N1_BT_SAFEWAY INC_9_0091372091700~ N2_NATIONAL SERVICES CENTER~ N3_P.O. BOX 29093~ N4_PHOENIX_AZ_85038~ N1_VN_BEST SUPPLIER INC._9_1234567890000~ N3_P.O. BOX 11111~ N4_LOS ALAMITOS_CA_90001~ PO1 **10_CA_12.5** UA_042040304101_IN_20403041_VN_22222~ CTP_RS_FCP_12.5~ PID_F_08_ITEM DESCRIPTION 1/10 LB~ SACAB280_ **20.00** _2.00__02~ CTT1\*\*120LB~ SE_30_01403001~ GE_1_1403~ IEA_1\*000001403~

---

<div class="post-metadata">

**Author:** ![My\_Online\_Articles](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@My\_Online\_Articles](https://techcommunity.softwareag.com/u/My_Online_Articles)\
**Post date:** [November 7, 2013, 3:49am UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-envelopeprocess-returns-an-error-code-da-0010/173267/5 "2013-11-07T03:49:55Z")

</div>

First, I am using BC 4.8.

So while debugging it appears that in the envelopeProcess, in the getTemplate, my returned Template Object has delimiters as follows:

record = 7  
field = \*  
subfield = 6

So I deduce then, that I don’t have the right Template and hence why I can’t follow the simplest of tutorials; EDI to Flat File. How can that be?

First, the parameter I supply is my STRING to this envelopeProcess (if I should supply more, what should they be?).

Second. I ran SEFParse and putTemplate with the following:  
SEFfileName = Server\packages\WmEDIsamples\pub\SEFS\4010.sef  
EDIDocName = 850  
includeEnvelope = True.

What am I missing here so that envelopeProcess can read the EDI and get the right Template?

In advance, thank you for time and help,  
Moa

---

<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:29pm UTC](https://techcommunity.softwareag.com/t/wm-b2b-edi-envelopeprocess-returns-an-error-code-da-0010/173267/6 "2021-04-02T15:29:46Z")

</div>

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


