VERIFIED SOLUTION i

Error "org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference" in EngageOne Digital Delivery

Issue

EngageOne Server Error:
<Datetime> [EM] ERROR [pool-1-thread-3] Digester.fatalError(1655) | Parse Fatal Error at line 12 column 109: The entity name must immediately follow the '&' in the entity reference. org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.

For example, if field value is  "One & Two". In the input file of EngageOne Server, it appears as :
<Name> One &amp; Two<Name>.

In the EngageOne Server output, DIJ has following entry :
<DDSDocValue name="Subject" type="text" len="35">One & Two</DDSDocValue>






 

Cause

EngageOne Server processing of Doc1 Interchange Journal (DIJ) file in EngageOne Digital Delivery (eMessaging) fails as "&" is XML parser and not recognized by EngageOne Digital Delivery.  EngageOne Server doesn't preserve HTML formatting while producing the DIJ.

 

Resolution

UPDATED: July 8, 2019
Instead of using  "One &amp; Two" in input file of EngageOne Server, change the formatting to "One &amp;amp; Two".
First '& amp;' will be parsed but second will remain and output will look like expected.  Second 'amp' is preserved in DIJ and thus causing e-messaging to parse the file successfully.