# Output Document Validation Mystery

**URL:** <https://techcommunity.softwareag.com/t/output-document-validation-mystery/107418>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [November 16, 2004, 3:12am UTC](https://techcommunity.softwareag.com/t/output-document-validation-mystery/107418 "2004-11-16T03:12:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![duffymo](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@duffymo](https://techcommunity.softwareag.com/u/duffymo)\
**Post date:** [November 16, 2004, 3:12am UTC](https://techcommunity.softwareag.com/t/output-document-validation-mystery/107418/1 "2004-11-16T03:12:45Z")

</div>

I had an odd problem with my wM EDI project today.

I’ve accumulated two weeks’ worth of test data for my 820, 850, and 860 documents. I’ve run all of this through my mappings that generate the flat files that I need on the back end. Every one of them compares favorably with the flat files generated by our current translation/mapping s’ware.

But when I ran the tests I left input and output validation checkboxes empty. While reading the EDI GEAR document, I realized my oversight, checked the validation checkboxes, and re-ran the first 820 document. I got a validation error on the output FF: a mandatory field was missing.

I checked the schema - the ONLY record that’s mandatory is the first one. All others are optional. The first record appears properly; its cardinality is one.

When I run in debug mode, the output flat file is generated without a problem.

How can this happen when the small handful of mandatory fields all appear? Is validation turned off in debug mode?

Thanks - %

---

<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 17, 2004, 8:26am UTC](https://techcommunity.softwareag.com/t/output-document-validation-mystery/107418/2 "2004-11-17T08:26:28Z")

</div>

Michael,

if you check the validation checkboxes on the input/out signatures panel then the validation will occur against the schema/document.so just uncheck it and also if you want validation then do it in convertToValues(validate=true) itself and this validation is based on the mandatory checkbox in the flatfile schema properties panel.

HTH,  
RMG.

---

<div class="post-metadata">

**Author:** ![duffymo](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@duffymo](https://techcommunity.softwareag.com/u/duffymo)\
**Post date:** [November 18, 2004, 12:37am UTC](https://techcommunity.softwareag.com/t/output-document-validation-mystery/107418/3 "2004-11-18T00:37:12Z")

</div>

Thanks, Rama, I’ll give it a look.

%

---

<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/output-document-validation-mystery/107418/4 "2021-04-02T15:04:47Z")

</div>


