# TN46 %7c error with convertToValues

**URL:** <https://techcommunity.softwareag.com/t/tn46-7c-error-with-converttovalues/108318>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [August 14, 2003, 2:41pm UTC](https://techcommunity.softwareag.com/t/tn46-7c-error-with-converttovalues/108318 "2003-08-14T14:41:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHIRAG](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/chirag/32/7647_2.png) [@CHIRAG](https://techcommunity.softwareag.com/u/CHIRAG)\
**Post date:** [August 14, 2003, 2:41pm UTC](https://techcommunity.softwareag.com/t/tn46-7c-error-with-converttovalues/108318/1 "2003-08-14T14:41:59Z")

</div>

Hi,

I am trying to convert a DELFOR 96A document into values. And convert to Values is giving me a StringIndexOutOfBounds Exception.  
Do I have to do anything with delimiters?

---

<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:** [August 14, 2003, 10:00pm UTC](https://techcommunity.softwareag.com/t/tn46-7c-error-with-converttovalues/108318/2 "2003-08-14T22:00:56Z")

</div>

May be some thing wrong with in EDI document itself,make sure the DELFOR document is having nice wellformed data.

This exception shows some extra data coming in the fields.

And also make use of envelopeProcess service if you are not using TN before invoking convertToValues.

HTH.

---

<div class="post-metadata">

**Author:** ![CHIRAG](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/chirag/32/7647_2.png) [@CHIRAG](https://techcommunity.softwareag.com/u/CHIRAG)\
**Post date:** [August 15, 2003, 12:03am UTC](https://techcommunity.softwareag.com/t/tn46-7c-error-with-converttovalues/108318/3 "2003-08-15T00:03:44Z")

</div>

Hi,

As of now, I am the document using UNEDIFACTtoValues of WmEDISamples packages to perform a check on a document that i am receiving. Later that will be done using Trading Networks.

I somehow could fix the problem of StringIndexOutOfBounds by by providing values of delimiters to convertToValues.

now i have a new ISSUE.

There is an UNS Segment in the DELFOR, at the end of details,  
and that is getting identified as EDIValues/UNH/[UNS@d](mailto:UNS@d), it should have got identified as just EDIValues/UNH/UNS, so when i call validate against it’s schema, it fails.

This are the last 4 lines of my test document.

DTM+2:20030711:102’  
UNS+S’  
UNT+49+00001’  
UNZ+1+LAB0000000001’

---

<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:** [August 15, 2003, 12:16am UTC](https://techcommunity.softwareag.com/t/tn46-7c-error-with-converttovalues/108318/4 "2003-08-15T00:16:40Z")

</div>

There is an issue on DELFOR D96A segment structure.This is a discussion on this,pls use this link:

[url=“[wmusers.com](http://www.wmusers.com/wmusers/messages/117/1391.shtml)”][wmusers.com](http://www.wmusers.com/wmusers/messages/117/1391.shtml%5B/url%5D)

It may help you regarding UNS segment issue.

Thanks,

---

<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/tn46-7c-error-with-converttovalues/108318/5 "2021-04-02T15:05:10Z")

</div>

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


