# Extracting the delimiters from the edi

**URL:** <https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [June 17, 2005, 2:11am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506 "2005-06-17T02:11:29Z")\
**Posts on this page:** 20\
**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:** [June 17, 2005, 2:11am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/1 "2005-06-17T02:11:29Z")

</div>

Hi,

I’m getting a bizdoc variable from the TN and mapping some data from the bizdoc to an internal format document.can anyone tell me how to get the delimiters from the original EDI doc?

Thanks in advance…

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:** [June 17, 2005, 7:08am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/2 "2005-06-17T07:08:59Z")

</div>

could anyone help me on this issue?

ramesh

---

<div class="post-metadata">

**Author:** ![dave05](https://avatars.discourse-cdn.com/v4/letter/d/ed655f/32.png) [@dave05](https://techcommunity.softwareag.com/u/dave05)\
**Post date:** [June 17, 2005, 7:29am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/3 "2005-06-17T07:29:40Z")

</div>

ramesh,

Is the edidata string available? Can you describe the process flow or provide an example?

Dave

---

<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:** [June 17, 2005, 8:01am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/4 "2005-06-17T08:01:11Z")

</div>

Dave,

The Edi doc is sent to the TN and the processing rule executes a service.i specified the input specification as wm.tn.rec:ProcessingService which has the bizdoc variable,sender summary and the receiver summary.now i want to pass the EDI doc delimiters to the internal format document.

ramesh

---

<div class="post-metadata">

**Author:** ![Chris\_L](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Chris\_L](https://techcommunity.softwareag.com/u/Chris_L)\
**Post date:** [June 17, 2005, 8:19am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/5 "2005-06-17T08:19:02Z")

</div>

I’m doing this from memory so I may be off a bit.  
The specification should be wm.tn.rec.bizDoc.  
See this thread [url=“[wmusers.com](http://www.wmusers.com/wmusers/messages/117/966.shtml)”][wmusers.com](http://www.wmusers.com/wmusers/messages/117/966.shtml%5B/url%5D)  
You will then find a number of idata objects in the pipeline.  
One will be ICValues which will have the structure of your EDI document ISA to IEA. In there will be structure call @delimiters which will hold the delimiter values.

HTH

---

<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:** [June 17, 2005, 8:35am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/6 "2005-06-17T08:35:41Z")

</div>

Chris,

There is no ICValues object in the pipeline when EDI doc is passed to the TN, and there is no variable in the bizdoc envelope where in i can get the delimiters.

ramesh.

---

<div class="post-metadata">

**Author:** ![Chris\_L](https://avatars.discourse-cdn.com/v4/letter/c/ba9def/32.png) [@Chris\_L](https://techcommunity.softwareag.com/u/Chris_L)\
**Post date:** [June 17, 2005, 8:53am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/7 "2005-06-17T08:53:06Z")

</div>

Did you change the specification?

---

<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:** [June 17, 2005, 9:02am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/8 "2005-06-17T09:02:13Z")

</div>

chris,

i’m still using the wm.tn.rec:ProcessingService specification.  
Can you tell me which field holds the delimiters?  
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:** [June 17, 2005, 12:08pm UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/9 "2005-06-17T12:08:15Z")

</div>

The delimiters are not identified in the bizdoc. After calling bizdocToRecord boundNode/ST/@delimiters holds the delimiters.

---

<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:** [June 17, 2005, 8:11pm UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/10 "2005-06-17T20:11:35Z")

</div>

Rob,

when i call the bizdocToRecord service,i pass in the bizdoc variable as input and i am getting an empty boundNode document.there is nothing underneath it.can u tell me how to do it?

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:** [June 18, 2005, 12:17am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/11 "2005-06-18T00:17:43Z")

</div>

Use the Wm EDI documentation to double check that all the setup for establishing EDI document types within IS have been successfully completed.

---

<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:** [June 18, 2005, 12:43am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/12 "2005-06-18T00:43:45Z")

</div>

Rob,

I have got the delimiters by parsing the EDI string using the substring function, but now i have to get the Transaction type,version and standard of the EDI doc.can you tell me how to get them without using the bizdocToRecord service?

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:** [June 18, 2005, 5:19am UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/13 "2005-06-18T05:19:59Z")

</div>

You shouldn’t parse the EDI string yourself. You should focus on getting bizdocToRecord working, which does the parsing. Make sure you’re using the bizdocToRecord service that is in the WmEDIforTN package, not the standard TN bizdocToRecord.

---

<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:** [June 20, 2005, 6:52pm UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/14 "2005-06-20T18:52:33Z")

</div>

Rob

I am using the bizdocToRecord service from the WmEDIforTN package,even then it is throwing the following exception:

com.wm.ff.parse.StorageException: [FFP.0015.0005] Specified an invalid schema `EDIFFSchema.X12.V4010:T%transactionName%`, is not a Flat File Schema.

and when i see the EDIFFSchema folder, the schema exists.  
and when we call the bizdocToRecord service, we never specify the schema.if i am not wrong, it actually matches the schema when it comes from the TN  
I know that we should’nt parse the EDI string to get the delimiters but there is no other solution i could find.and one more problem is i want to get the transactionName,version and standard.

Can you tell me how to do this or any other solution to get this done.

Thanks  
ramesh

---

<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:** [June 20, 2005, 7:06pm UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/15 "2005-06-20T19:06:49Z")

</div>

Ramesh,

When you do the envelopeProcess on edidata string you will see the delimiters record in the pipeline,so extract the required delimiters from the pipeline.

HTH,  
RMG

---

<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:** [June 20, 2005, 7:36pm UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/16 "2005-06-20T19:36:43Z")

</div>

wm.b2b.editn:bizdocToRecord will give you all of those details.

The wm.b2b.editn:bizdocToRecord service is a flow service, so you can look at exactly what it is doing.

The error you’re seeing:  
com.wm.ff.parse.StorageException: [FFP.0015.0005] Specified an invalid schema `EDIFFSchema.X12.V4010:T%transactionName%`, is not a Flat File Schema.

indicates that “transactionName” doesn’t exist in the pipeline. The second step of the service determines the “standard”, “version” and “transactionName” of the document using the TN document type name. bizdoc/DocType/TypeName holds the TN doc type name. As an example, a doc type of “X12 4010 810” will return standard=X12, version=4010 and transactionName=810.

The pub.flatFile:convertToValues step uses these variables to define the ffSchema input using “EDIFFSchema.%standard%.V%version%:T%transactionName%” and variable substitution.

What’s odd is that standard and version are clearly substituted, but transaction name is not. I’m not sure what would cause that behavior. Best bet is to set things up so you can step through this service to see the value of bizdoc/DocType/TypeName, what getDetailFromTypeName returns, and so on.

HTH

---

<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:** [June 20, 2005, 7:39pm UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/17 "2005-06-20T19:39:48Z")

</div>

RMG: since Ramesh is using TN and EDI for TN, there is no need to use the envelopeProcess. Deenveloping occurs under the covers. bizdocToRecord is the service Ramesh needs and once things are set up to get that working, all the data desired will be available in the pipeline.

---

<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:** [June 20, 2005, 7:44pm UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/18 "2005-06-20T19:44:31Z")

</div>

In my experience, the parsing error occurs when invoking bizdocToRecord at the group level, rather than at the transaction level. If you invoke it in a processing rule for, say the X12 4010 850, rather than the X12 Group or Envelope, then, as Rob says, all the needed data should be available in the pipeline.

---

<div class="post-metadata">

**Author:** ![Dawn\_Field](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@Dawn\_Field](https://techcommunity.softwareag.com/u/Dawn_Field)\
**Post date:** [June 20, 2005, 7:47pm UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/19 "2005-06-20T19:47:04Z")

</div>

ramesh,  
Let me back you up a second so I can get a handle on some of the basics of your setup. The key I saw in your post is the error you just identified indicating that bizdocToRecord could not identify the transaction name.

Is the X12 doctype that you are translating setup completely in TN. In other words go to the doctypes and see if this document is listed there and in an active/enabled status an example would be X12 4010 850. Make sure it is enabled.

Next save and restore your pipeline and check the bizdoc and let me know what is in the element bizdoc/DocType/TypeName. TypeName is used in the service wm.b2b.editn:getDetailFromTypeName where the transactionName is determined.

The last thing I am looking for is EDIFFSchema.X12.V4010:T850 do you see a schema similar to this example for the document you are translating in the WmEDIforTN package?  
Thanks,  
Dawn

---

<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:** [June 20, 2005, 7:54pm UTC](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506/20 "2005-06-20T19:54:21Z")

</div>

Rob,

I totally understand that he is routing the edi via TN,but since he is not able to pass thru the bizdocToRecord service,i told alternative method for extracting delimiters etc…may be he is missing something as users mentioned above.Ramesh pls make sure as Dawn mentioned above incase debugging the pipeline info helps.

HTH,  
RMG

[Next page](https://techcommunity.softwareag.com/t/extracting-the-delimiters-from-the-edi/108506.md?page=2)
