Hello All,
Please help me to resolve this issue! i am using webmethod IS 9.8 version.
I want to read the validation errors produced by “wm.b2b.edi:convertToValues” service in to a java service and take the necessary action. But when I access the pipeline variable “errors” in the java service, it’s giving null. Even though the pipeline out contains “errors” key.
I am using the following steps
Pub.file.getFile
Wm.b2b.edi:convertToValues
I turned the validate flag to true.
I tried creating an document type myErrors and map the “errors” service out to that document(myErrors) but it did not work out.
What is the alternate way to read the validation errors in the java service and take the action. Any suggestion is appreciated.
hello,
I am giving the following input parameter
1.edidata–The input as bytes (edi data as a txt file)
2.EDIFFSchema–fully qualified name of D95b schema (for DESADV), generated from SEF parser. i.e. using wm.b2b.edi.SEFParse
3.delimeters–record=’
field=+
subfield=:
release=*
4.validate=true
As per the documentation maxErrors means Maximum number of errors that you want returned when validate is set to true. By setting the maxErrors to -1 will ensure that it will list all the errors if the error list is big.
But as per your request i removed the maxErrors parameter and tested the flow service, it is working fine. It is listing all the validation errors (14 errors and some additional 8 childErrors) even though the maxErrors is not set to -1