# Document Schema

**URL:** <https://techcommunity.softwareag.com/t/document-schema/109980>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [November 25, 2009, 3:07pm UTC](https://techcommunity.softwareag.com/t/document-schema/109980 "2009-11-25T15:07:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuvm](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@manuvm](https://techcommunity.softwareag.com/u/manuvm)\
**Post date:** [November 25, 2009, 3:07pm UTC](https://techcommunity.softwareag.com/t/document-schema/109980/1 "2009-11-25T15:07:18Z")

</div>

We have a requiement to read a flat file and nsert data to a table. I created a schema for the document. When I try to convert the flat file to schema its throwing an exception “delimiter not set”.  
Could anyone letm e know why this is happening and how i can resolve it.

thanks in advance

---

<div class="post-metadata">

**Author:** ![devexpert](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@devexpert](https://techcommunity.softwareag.com/u/devexpert)\
**Post date:** [November 25, 2009, 5:20pm UTC](https://techcommunity.softwareag.com/t/document-schema/109980/2 "2009-11-25T17:20:07Z")

</div>

Hi,

Since you are using must be using pub.flatfile.convertToValues to covert the flat file to IS document by validating against schema, you need to provide record delimiter and field delimiters in the input signature of this service.  
Please set the segment and line delimiter from you sample file, it should solve your problem. Wrote us back if still find some issue.

cheers!  
naren

---

<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:** [November 25, 2009, 9:25pm UTC](https://techcommunity.softwareag.com/t/document-schema/109980/3 "2009-11-25T21:25:56Z")

</div>

The delimiters can be specified in the input of convertToValues or in the FF schema.

---

<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/document-schema/109980/4 "2021-04-02T15:05:58Z")

</div>

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


