I have used IdocXMLtoFlat module in one of my interface, It was working fine, until we have a requirement to include Z(Custom) segment in the Custom IDOC. Then its failed and the following error occurs in Receiver Channel.
IDOC_ERROR_PARSE_FAILURE: An IDocIllegalTypeException occurred: state=READING_FIELD_STARTTAG, charPosition=170967, lineNumber=1, columnNumber=170968, invalidChar=U+0053
This points to the Z segment added in the IDOC. I have check the meta data its up to date, shows as same as backed system structure. Please let me know your thoughts on it.