# Wm601 Flat File Schemas  recordWithNoID

**URL:** <https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [May 28, 2003, 5:01pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702 "2003-05-28T17:01:28Z")\
**Posts on this page:** 14\
**Page:** 3

<div class="post-metadata">

**Author:** ![rattansingh.10061](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rattansingh.10061](https://techcommunity.softwareag.com/u/rattansingh.10061)\
**Post date:** [August 7, 2005, 1:28am UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/41 "2005-08-07T01:28:39Z")

</div>

Does anyone know how to solve the problem of “3 nearly identical recordWithNoID arrays that appear under the root node when generating the document type from the schema which was used to parse a fixed length flat file which did not have any record identifier.”

---

<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:** [August 8, 2005, 7:28pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/42 "2005-08-08T19:28:47Z")

</div>

Singh,

Please elaborate your query again…

You want recordWithNoID rootnode showing as Array or just document in the DocumentType

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![rattansingh.10061](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rattansingh.10061](https://techcommunity.softwareag.com/u/rattansingh.10061)\
**Post date:** [August 8, 2005, 7:36pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/43 "2005-08-08T19:36:27Z")

</div>

RMG,

I’m getting three identical reocrdWithNoID arrays in the DocumentType which is generated from the Flat File Schema. I want only one array/structure. One way to elimate is by using the method ‘Mark Carlson’ had mentioned above. I was wondering if there was any way to use the ‘RecordDefinition’ of ‘recordWithNoID’ specified in the Flat File schema and get only one array of ‘recordWithNoID’ in the DocumentType that is generated from the schema.

---

<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:** [August 8, 2005, 7:45pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/44 "2005-08-08T19:45:18Z")

</div>

Singh,

In the Schema/FlatFileStructure tab click on the recordWithNoID recordDefinition then in the properties tab set Max Repeat=1,this makes in the documentType to show as Document not DocumentList(Arrays).

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![rattansingh.10061](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rattansingh.10061](https://techcommunity.softwareag.com/u/rattansingh.10061)\
**Post date:** [August 8, 2005, 7:54pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/45 "2005-08-08T19:54:11Z")

</div>

Thanks for your response, RMG. That is fine. What I want to know is how to get the DocumentType to show just one document/array and not multiple documents/arrays (3) when it is generated from the flat file schema. At this point I don’t care if it is a document or array. Whatever it is, it should be one not three.

---

<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:** [August 8, 2005, 8:02pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/46 "2005-08-08T20:02:12Z")

</div>

Sorry i am not sure that y the doctype is showing three identical reocrdWithNoID arrays.

Is there only one RecordDefintion for your fixed length flatfile?

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![rattansingh.10061](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rattansingh.10061](https://techcommunity.softwareag.com/u/rattansingh.10061)\
**Post date:** [August 8, 2005, 8:16pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/47 "2005-08-08T20:16:35Z")

</div>

Yes, only one record definition.

---

<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:** [August 8, 2005, 8:20pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/48 "2005-08-08T20:20:48Z")

</div>

If so this should help,I hope you did this way…

In the Schema/FlatFileStructure tab click on the recordWithNoID recordDefinition then in the properties tab set Max Repeat=1,this makes in the documentType to show as Document not DocumentList(Arrays) which is generated from Schema

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![Koteswar\_Rao\_Amarachintha](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Koteswar\_Rao\_Amarachintha](https://techcommunity.softwareag.com/u/Koteswar_Rao_Amarachintha)\
**Post date:** [November 17, 2005, 10:19pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/49 "2005-11-17T22:19:01Z")

</div>

Hi All,

We have few records with spaces at the beginning, but convertToValues parsing record ignoring the spaces(parsing without record identifier).

Please help me.

Thanks in Advance  
Rao

---

<div class="post-metadata">

**Author:** ![javier.monzon.45096](https://avatars.discourse-cdn.com/v4/letter/j/c6cbf5/32.png) [@javier.monzon.45096](https://techcommunity.softwareag.com/u/javier.monzon.45096)\
**Post date:** [November 18, 2005, 12:12am UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/50 "2005-11-18T00:12:03Z")

</div>

Hi KRA,

Use skipWhiteSpace parameter setup to false.  
Let me know if solve your problem.

---

<div class="post-metadata">

**Author:** ![Koteswar\_Rao\_Amarachintha](https://avatars.discourse-cdn.com/v4/letter/k/7cd45c/32.png) [@Koteswar\_Rao\_Amarachintha](https://techcommunity.softwareag.com/u/Koteswar_Rao_Amarachintha)\
**Post date:** [November 18, 2005, 10:37am UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/51 "2005-11-18T10:37:07Z")

</div>

Javier thanks for solution. Its working fine.

Hi All,

We have another issue, at the end of file few new line characters are there and convertToValues parsing these new lines too. This is because there is no record identifier.

Please help me to avoid new line characters parsing which are at the end of file.

Thanks in Advance  
Rao

---

<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:** [November 18, 2005, 8:06pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/52 "2005-11-18T20:06:08Z")

</div>

Are these 2lines are parsing as UnDefData?

HTH,  
RMG

---

<div class="post-metadata">

**Author:** ![shantanu\_bhagat](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@shantanu\_bhagat](https://techcommunity.softwareag.com/u/shantanu_bhagat)\
**Post date:** [December 13, 2005, 12:18am UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/53 "2005-12-13T00:18:38Z")

</div>

Hello,  
I went thru the posts above and tried to make my schema work, but it does not …  
Here’s what my flat file structure looks like  
individual record - AAAAAAAAXXXXXXXXXYY9999999999999  
Trailer record - AAAAAAAA999999999ZZ9999999999999

The trailer record is identified by “999999999ZZ” which starts from position 9.

I created a flat file dictionary, and in the schema referenced the same dictionary.  
The record identifier in the schema starts at position 9.

But still i get all the records as “recordsWithNoID”.  
Please let me know, what is it that needs to be changed.

Thanks for the help  
Shantanu

---

<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:04pm UTC](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702/54 "2021-04-02T15:04:53Z")

</div>



[Previous page](https://techcommunity.softwareag.com/t/wm601-flat-file-schemas-recordwithnoid/107702.md?page=2)
