# Wm601 switching from pubschemavalidate to convertToValues

**URL:** <https://techcommunity.softwareag.com/t/wm601-switching-from-pubschemavalidate-to-converttovalues/107861>\
**Category:** Forum\
**Tags:** EDI\
**Created:** [May 22, 2003, 5:39pm UTC](https://techcommunity.softwareag.com/t/wm601-switching-from-pubschemavalidate-to-converttovalues/107861 "2003-05-22T17:39:47Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [May 22, 2003, 5:39pm UTC](https://techcommunity.softwareag.com/t/wm601-switching-from-pubschemavalidate-to-converttovalues/107861/1 "2003-05-22T17:39:47Z")

</div>

I’m migrating some EDI services developed in 4.6 to 6.01.  
It’s my understanding that you can no longer use pub.schema:validate to validate an outbound EDI document but that you must use wm.edi.b2b:convertToValues.

In 4.6 I did the following:

1. mapped my EDIRecord (ST…SE) of type Document to service in object of pub.schema:validate .
2. set the value of conforms to point to my template
3. set maxErrors to -1

In 6.01 I’m attempting the following:

1. map my EDIRecord (ST…SE) of type Document to service in edidata of wm.edi.b2b:convertToValues
2. set the value of EDIFFSchema to EDIFFSchema.X12.V4010.T810
3. set validate to true
4. set maxErrors to -1

I’m now getting the following error:  
Cannot process ffData of type:com.wm.util.Values.

Is EDIRecord now the wrong type to be passing into edidata?

Thanks.

---

<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:** [May 28, 2003, 5:07pm UTC](https://techcommunity.softwareag.com/t/wm601-switching-from-pubschemavalidate-to-converttovalues/107861/2 "2003-05-28T17:07:03Z")

</div>

Found the solution to this on pg 33, 2nd paragraph of the EDI Module Users Guide.  
You can validate the data using either pass the output of convertToString to convertToValues or pass your IS Document to pub.schema:validate.

They should have included this as one of the steps in doc not as a separate paragraph.

FYI

---

<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-switching-from-pubschemavalidate-to-converttovalues/107861/3 "2021-04-02T15:04:56Z")

</div>

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


