tag:blogger.com,1999:blog-4533777417600103698.post6705937806289979966..comments2024-03-28T19:04:17.007+01:00Comments on Darwin-IT: BPM12c: Patch for 'ora:getAttachmentProperty: Failed to decode properties string 'Martien van den Akkerhttp://www.blogger.com/profile/05183907832966359401noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4533777417600103698.post-42579261561029083562015-01-29T19:17:14.755+01:002015-01-29T19:17:14.755+01:00Hi Vaibhav,
I think it's in the fact that you...Hi Vaibhav,<br /><br />I think it's in the fact that you added '/@href' to the xpath. Can you try without it? <br />The input of the function is the attachment object where it interprets it by getting the attribute.<br /><br />Regards,<br />MartienMartien van den Akkerhttps://www.blogger.com/profile/05183907832966359401noreply@blogger.comtag:blogger.com,1999:blog-4533777417600103698.post-67549282405084177312015-01-29T14:28:19.515+01:002015-01-29T14:28:19.515+01:00Hi,
I too tried using ora:getAttachmentProperty. ...Hi,<br /><br />I too tried using ora:getAttachmentProperty. And the error which I get is weird. I am not able to understand possible reason for it. Can you please help- <br /><br /><b>What I am trying to do </b>- Currently able to save attachment to disk however I want to save attachment with same name which came in email.<br /><br />Error thrown by SOA server is<br /><br />XPath expression failed to execute.<br />An error occurs while processing the XPath expression; the expression is <b>ora:getAttachmentProperty('Content-Description',$Receive1_ReceiveNotification_InputVariable.body/ns3:attachment[$counter]/@href).</b><br />The XPath expression failed to execute; the reason was: java.lang.ClassCastException: oracle.xml.parser.v2.XMLAttr cannot be cast to java.lang.String.<br />Check the detailed root cause described in the exception message text and verify that the XPath query is correct.<br /><br /><br /><i>**$counter used in expression is to loop through multiple attachments.</i><br /><br />Any help would be appreciated. :)Vaibhav Saraogihttps://www.blogger.com/profile/07448461239876441626noreply@blogger.com