We receive a EDI document that contains a & character. The wm.tn.doc:recognize does cut the EDI document before the first occurrence of this characters.
If the document does not contains this character the process goes smoothly. We do not have control over the EDI document and the customer does not have the ability to remove, cast or convert the character to something else.
When you get the EDI in, does it come first as a string? If so, before you convert the string to an EDI Doc, you can manipulate the string to remove the &, or replace it with a less problematic character