Trading Networks 10.3 | Administering and Monitoring B2B Transactions | Trading Networks Built-In Services Reference | Doc Folder | Summary of Elements in this Folder | wm.tn.doc.ff:validate
 
wm.tn.doc.ff:validate
Validates the structure of a flat file document. This service uses the content of the bizdoc, settings from the TN document type and the pub.flatfile:convertToValues service to validate the flat file document.
Input Parameters
bizdoc
Object The flat file document to be validated. For the structure of bizdoc, see wm.tn.rec:BizDocEnvelope.
Output Parameters
errorCount
String The number of errors found while validating the document's structure.
errors
String List The errors found while validating the document's structure. If invoked from a Java service, errors is a String[ ].
Usage Notes
This service is invoked by Trading Networks if the matching TN document type and/or processing rule specifies that the document should be validated. You can invoke it explicitly if you have a bizdoc.