ClearQuest EmailRelay may fail to process an EmailPlus message in PostOffice or SMTP Relay mode
Using EmailPlus and EmailRelay setup in PostOffice or SMTP Relay mode, email generated by ClearQuest may fail to be sent due to the email exceeding the predefined limit set by ClearQuest OSLC of 2000 characters.
Emails are not received by the intended recipient.
Out-of-the box, IBM Rational ClearQuest OSLC REST API imposes a limit of how many characters will be read from a multi-line field of a ClearQuest record. The default value for this limit is 2000 characters. If an email Payload, generated by EmailPlus template rule ends up exceeding this 2000 character limit, the Payload is truncated by OSLC REST API. Since this Payload consists of XML data, the Payload becomes invalid after the truncation and thus EmailRelay fails to process the Payload and it cannot send the email to the intended recipient.
Diagnosing the problem
Examine your CM Server's SystemOut.log file and if you see an error of the form:
[8/5/13 9:33:58:221 CDT] 00000018 OslcDbReader E An exception occurred while creating the emails_.
[8/5/13 9:33:58:221 CDT] 00000018 OslcDbReader E XML document structures must start and end within the same entity.
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.
then, it is most likely that you have run into this issue.
Resolving the problem
There are two ways to address this issue. For best results, apply both technotes:
- Follow the instructions per technote http://www-01.ibm.com/support/docview.wss?uid=swg21590934 to increase the limit on multi-line field value from the default of 2000 to a larger number such as 10000.
- Follow the instructions per technote http://www-01.ibm.com/support/docview.wss?uid=swg21650960 to modify your EmailPlus template rules code to limit the size of your Payload email body.
More support for:
Software version: 8.0, 188.8.131.52, 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124, 126.96.36.199, 188.8.131.52, 184.108.40.206, 8.0.1, 220.127.116.11
Operating system(s): AIX, Linux, Solaris, Windows
Reference #: 1650979
Modified date: 30 September 2013