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

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

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

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

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.

ISA00 00 089251750000 081234567890 0306271304U004010000014030P>~
GSPO801972119312345678902003062713041403X004010~
ST85001403001~
BEG00SA548177**20030627~
REF
AN547794~
PER
BDJOHN JONESTE5552225555~
FOB
PB~
DTM00220030705~
DTM11820030704~
PKG01~
TD5
H
OUR CR/T~
N9
AH548177~
MSG
THIS PURCHASE ORDER IS SUBJECT TO THE SAME TERMS AND~
MSGCONDITIONS AS SAFEWAY PURCHASE ORDER FORM 1030~
MSG
PICKUP NO. E450562~
N1STSAFEWAY INC90091372092527~
N2Tracy Produce~
N3
16900 West Schulte Road~
N4TracyCA95376~
N1
BTSAFEWAY INC90091372091700~
N2
NATIONAL SERVICES CENTER~
N3P.O. BOX 29093~
N4
PHOENIXAZ85038~
N1VNBEST SUPPLIER INC.91234567890000~
N3P.O. BOX 11111~
N4
LOS ALAMITOSCA90001~
PO110CA12.5UA042040304101IN20403041VN22222~
CTP
RSFCP12.5~
PIDF08ITEM DESCRIPTION 1/10 LB~
SAC
A
B280
20.002.0002~
CTT
1**120
LB~
SE
3001403001~
GE
11403~
IEA
1*000001403~

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