# EDI to FlatFile error while writing into a flat file

**URL:** <https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [December 5, 2003, 2:10am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177 "2003-12-05T02:10:09Z")\
**Posts on this page:** 13\
**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:** [December 5, 2003, 2:10am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/1 "2003-12-05T02:10:09Z")

</div>

I am getting EDi and i need to write into a flat file(fixed length) . I have created a flat file dictionary and schema from that with recordWithNoID record name and gave references to fields.  
Flat file is created but in convertToString service output string, i am getting recordWithNoID along with given input values in the flat file .  
Is there any problem with Flat file schema? I tried by giving record reference also instead of giving field reference but did not work .  
can anyone come up with a solution? I need immediate response.

---

<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:** [December 5, 2003, 2:32am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/2 "2003-12-05T02:32:21Z")

</div>

Reference to the above message  
The flat file is coming up with this error-  
first 14 characters are overlapped by recordWithNoID and then i am getting all the rest in a string format correctly  
anyone can throw light on it?

---

<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:** [December 5, 2003, 6:43am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/3 "2003-12-05T06:43:52Z")

</div>

Seems like your record position is still set to 0. On Flat File Definition tab change the Start at Position of the Record Identifier at the bottom of the screen.  
You may also have to adjust the position within the within the schema

HTH

---

<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:** [December 5, 2003, 7:20am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/4 "2003-12-05T07:20:46Z")

</div>

So do i need to move the position from 0 to 14?( recordWithNoID is occupying) when i create flat file? but can you let me know why does recordWithNoID appear in the flat file? Does it come up while creating a flat file everytime?  
In another mapping, convertToString is throwing Null pointer Exception when schema is given to it .I have checked the values they r present in the pipeline .Could not find out where the problem is with flat file.

---

<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:** [December 5, 2003, 8:18am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/5 "2003-12-05T08:18:17Z")

</div>

see this post where I previously posted the solution  
[url=“[wmusers.com](http://www.wmusers.com/wmusers/messages/117/12282.shtml)”][wmusers.com](http://www.wmusers.com/wmusers/messages/117/12282.shtml%5B/url%5D)  
Let us know if this fixes the problem

---

<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:** [December 6, 2003, 2:36am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/6 "2003-12-06T02:36:45Z")

</div>

Got it. Thanks.

---

<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:** [December 6, 2003, 2:39am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/7 "2003-12-06T02:39:13Z")

</div>

Can you share your experiances with EDIFACT (inbound DELJIT message) if you have any ?

---

<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:** [December 6, 2003, 3:48am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/8 "2003-12-06T03:48:52Z")

</div>

Can you be more specific?

---

<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:** [December 6, 2003, 7:38am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/9 "2003-12-06T07:38:48Z")

</div>

UN/EDIFACT inbound processing ( DELJIT message which is eqivalent to EDI 862 ) I am looking for guidence in processing that message using webMethods built-in services? I need to send it to TN also .

---

<div class="post-metadata">

**Author:** ![hboddeti](https://avatars.discourse-cdn.com/v4/letter/h/bbce88/32.png) [@hboddeti](https://techcommunity.softwareag.com/u/hboddeti)\
**Post date:** [February 4, 2004, 8:26pm UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/10 "2004-02-04T20:26:24Z")

</div>

hi professionals,  
i am new to webMethods  
can u all help me out with steps of how to convert EDI to Flat FIle

---

<div class="post-metadata">

**Author:** ![wMusers.Com1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/wmusers.com1/32/170_2.png) [@wMusers.Com1](https://techcommunity.softwareag.com/u/wMusers.Com1)\
**Post date:** [February 5, 2004, 4:41am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/11 "2004-02-05T04:41:36Z")

</div>

EDI files are flat files, right? What is it that you need to do with your EDI file? I assume you want to parse the EDI file into its various record types, do something with those records and then write something out as another flat file, but with a different format from the original EDI document.

You really need to read the documentation and to work through the samples and any available tutorials. The WM Users discussion forums are not meant to take the place of those things.

We’re all happy to help you answer specific questions that you may have.

Mark

---

<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:** [February 5, 2004, 8:57am UTC](https://techcommunity.softwareag.com/t/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/12 "2004-02-05T08:57:00Z")

</div>

Please also see the wmEDISamples package for excellent examples.

---

<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/edi-to-flatfile-error-while-writing-into-a-flat-file/108177/13 "2021-04-02T15:05:06Z")

</div>


