0 Replies Latest reply: Sep 25, 2013 4:10 AM by Daniel_Alves RSS

    Email UMS Adapter returning invalid attachments href code

    Daniel_Alves

      Hello,

       

      Trying to process emails with the UMS Adapter I'm having a problem.

       

      The href value that the attachments have are invalid. For instance:

       

      <inputVariable>
        <part  name="body">
        <ns0:message>
        <payload  xsi:type="xs:string"> testing </payload>
        <attachment>
        <Attachment  href="1"/>
        <Attachment  href="2"/>
        <Attachment  href="3"/>
        </attachment>
        </ns0:message>
        </part>
      </inputVariable>
      

       

      It saw it was strange because on the samples I've found the href property is always a GUID or similar code.

       

      I've tried to get the contents for any of the attachments but I'n getting the following error:

       

      javax.xml.xpath.XPathExpressionException: Cannot load attachment with dbKey: 2
              at oracle.xml.xpath.JXPathExpression.evaluate(JXPathExpression.java:242)
              at com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate(BPELXPathUtil.java:247)
      

       

      Does anyone know the reason for this? and how to solve it?

       

       

      Thanks,

      Daniel Alves