# Superscript character as field delimiter in EDI

**URL:** <https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [July 2, 2003, 5:00pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383 "2003-07-02T17:00:30Z")\
**Posts on this page:** 16\
**Page:** 1

<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:** [July 2, 2003, 5:00pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/1 "2003-07-02T17:00:30Z")

</div>

We have a trading partner using version X12 3020 docs with superscript character as the field delimiter.I will post a sample segment here:

ISA³00³ ³00³ ³zz³1014663322 ³01³1122334455 ³040805³0432³U³00300³000000111³0³P³\>

So, we are not able to process the EDI Documents of this type.TN is able to recognise this document but the processing service fails

Any help/ideas greatly appreciated.

---

<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:** [July 2, 2003, 5:14pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/2 "2003-07-02T17:14:17Z")

</div>

Why does the service fail? What are the error messages?  
Remember the character is displayed differently depending on the system you’re on and the viewer you are using. All TN and EDI care about is the hex value of the Element Separator.  
Provide some more details.

---

<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:** [July 2, 2003, 5:29pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/3 "2003-07-02T17:29:16Z")

</div>

We are able to submit data to TN web console-WmTNforEDI.  
Submission of one single transaction set passes thru but when we try to submit multiple data the processing fails.

When we do the same operation of submitting the data to the TN through a flow servce it fails again.

Kindly let us know if there are any details relating to setting that needs to be taken care of.

---

<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:** [July 2, 2003, 6:49pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/4 "2003-07-02T18:49:18Z")

</div>

What content-type are you using?  
Try Application/EDIStream.

---

<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:** [July 2, 2003, 7:16pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/5 "2003-07-02T19:16:35Z")

</div>

I believe that submitting content with content-type of application/edistream is not supported by TN (see discussion [url=“[wmusers.com](http://www.wmusers.com/wmusers/messages/117/982.shtml)”][wmusers.com](http://www.wmusers.com/wmusers/messages/117/982.shtml%5B/url%5D)).

A project I’m working on has a partner that is using that same value for the sub-element delimiter. Try setting the content-encoding to ISO-8859-1, either on the submission side or if you have the bytes in your flow, set it in the bytesToString call.

---

<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:** [July 2, 2003, 7:51pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/6 "2003-07-02T19:51:58Z")

</div>

Hi Rob,

application/EDIStream does work. I’ve been using it successfully since 4.6.

Chris

---

<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:** [July 2, 2003, 8:18pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/7 "2003-07-02T20:18:58Z")

</div>

Cool. Thanks for the info Chris.

---

<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:** [July 3, 2003, 3:36pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/8 "2003-07-03T15:36:10Z")

</div>

Thanks Rob & Chris,

Now we are able to submit multiple transactions through flow service by setting Content-type Application/EDIStream.But it fails whenever we tried to process document using wm.b2b.edi:envelopeProcess flow Service.

Any suggetions.

---

<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:** [July 3, 2003, 4:51pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/9 "2003-07-03T16:51:10Z")

</div>

Dude,  
What’s the error?

---

<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:** [July 3, 2003, 5:18pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/10 "2003-07-03T17:18:14Z")

</div>

Chris,

wm.b2b.edi:envelopeProcess flow service generating “errorArray” output with the following messages.

\<?xml\>  
\<pathname\>/ISA/ISA01/code\</pathname\>  
\<errorcode\>DT-STR001\</errorcode\>  
\<errormessage\>[B2BCORE.0082.9293] No matching choice value\</errormessage\>

and generating “Values” output like this:

\<?xml\>  
\<isa\>\>\>BasicData:record=0,field=Â,subfield=0,release= \<\<\<"\>  
\<isa01\>  
\<code\>³\</code\>  
\</isa01\>  
\<isa16\>0\</isa16\>  
\<undefdata\>Â³ Â³0Â³ Â³zzÂ³1014663322 Â³01Â³1122334455 Â³040805Â³0433Â³UÂ³030Â³0322Â³0Â³TÂ³\>  
GSÂ³INÂ³1014663322Â³1122334455Â³040805Â³0433Â³0322Â³XÂ³03050\</undefdata\>

Hope this information clarify my situation

---

<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:** [July 3, 2003, 6:04pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/11 "2003-07-03T18:04:22Z")

</div>

Vikram,

You document seems to error on the ISA01 which is usually 00.  
However I see that your output is in XML format. The output from envelopeProcess Values, is a record (4.6) or document (6.0).  
What exactly are you mapping into edidata?  
You should be doing a bytesToString and map that output to edidata.  
Maybe you can share the sequence of steps you are following after you document gets to TN.

---

<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:** [July 3, 2003, 6:23pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/12 "2003-07-03T18:23:55Z")

</div>

Yes i am doing a bytesToString and map that output to edidata.Values, is a record(4.6), I am using recordTodocument to convert Values record into XML.This step i used for debugging purpose.

Here is the sequence of steps that execute after document gets to TN:

1.bytesToString  
2.envelopeProcess  
3.recordTodocument  
4.smtp

steps 3 and 4 used for debugging purpose and here is the ISA segment of the EDI document that i submitted to TN.

ISA³00³ ³00³ ³zz³1014663322 ³01³1122334455 ³040805³0432³U³00300³000000111³0³P³\>

regards  
Vikram

---

<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:** [July 3, 2003, 7:00pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/13 "2003-07-03T19:00:04Z")

</div>

I see “Â³” in the data of the error message. So your ISA looks to IS to be something like:

ISAÂ³00Â³ Â³00Â³…

Thus it thinks that Â is your element delimiter and ³ is the value of ISA01, which is not a valid value. You need to set the encoding correctly in your bytesToString call. Set it to ISO-8859-1 and ³ won’t be turned into 2 characters during the conversion from bytes to string.

---

<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:** [July 3, 2003, 8:44pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/14 "2003-07-03T20:44:03Z")

</div>

Rob,

Eventhough we set the encoding to ISO-8859-1, it is turning to 2 characters. Could you tell me what may be the reason for this.

---

<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:** [July 4, 2003, 4:39pm UTC](https://techcommunity.softwareag.com/t/superscript-character-as-field-delimiter-in-edi/108383/15 "2003-07-04T16:39:43Z")

</div>

Hi

It is working fine. We set the encoding to UTF-8. It is converting Properly and EDI processed successfully.

Thanks Rob & Chris.

regards  
Vikram

---

<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/superscript-character-as-field-delimiter-in-edi/108383/16 "2021-04-02T15:05:12Z")

</div>


