Attachments in Email Activity ?

Hello Experts,
I have a requirement where i need to get the records from database and send those records as an attachment in the email activity. I got the attachment slightly working...I assigned the Database output to the String Variable and attached that string to the Attachments...
But the records are not in a correct aligned way in the file. Is there any way to align the data in a good aligned format ?
i need to add an attachment may be in an xml or txt or csv...but the data should be atleast in an aligned way...
Please help me...
Thanks,
Naresh

Hi Anuj,
But if i do that, the data is completely empty in the file...If i see in the flow trace, the data is getting assigned to the attachment variable...but in the email attachment, the file is completely empty....
And as the above person said, if i need to write the file and read the same file; that wouldn't work i guess because, my BPEL would be polling the table , after getting the records it needs to send an email with the records it got as an attachment....
I have a question here. So if we want to add attchments, is ora:readFile the only option of attaching the file ?
Please help...i need to copy the records inthe input of my BPEL to the attachments in the email activity in BPEL..
Thanks,
Naresh

Similar Messages

  • How to add Attachments in Email Activity ?

    Hi,
    I have a requirement where i need to get the records from database and send those records as an attachment in the email activity. Please help me in this regard. I got the email activity working, but was unable to send the records as an attachment in the email activity..
    The email is working fine and in the attachment, the file is completely empty. Please help me how to do this...
    Thanks,
    Naresh

    I got the attachment slightly working...I assigned the Database output to the String Variable and attached that string to the Attachments...
    But the records are not in a correct aligned way in the file. Is there any way to align the data in a good alaigned format ?
    i need to add an attachment may be in an xml or txt or csv...but the data should be atleast in an aligned way...
    Thanks,
    Naresh

  • Attachment with Email activity....................

    Hi,I am using email activity with attachment if i deployed application on linux server than i am not able to send any attachment from email .so to resolve this issue i have to disable payload validation on EM console so if i don't do that than I got following error in my BPEL.
    <bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>oracle.fabric.common.FabricInvocationException: Schema validation failed for message part EmailPayload. Please ensure at the message sender level that the data sent is schema compliant.</summary></part><part name="detail"><detail>Element not completed: 'BodyPart'</detail></part><part name="code"><code>null</code></part></remoteFault></bpelFault>
    Thanks in advance please help me friends..so how to send email attachment_ without_ disable payload validation on EM console .................
    Edited by: 835461 on Aug 11, 2011 10:52 PM

    Hi,
    When i try to send the email with attachments i am getting the below error from soa console. Please help me.
    <Oct 5, 2011 3:00:00 PM IST> <Error> <oracle.soa.services.notification> <BEA-000000> <<MDBConsumer.processNotification>
    Error for message ID 0bed1e8d948a85ed:7cbdb9db:132d35431f7:-7ff6 ERROR MESSAGE : 0;
    But I am able to send the Emails without attachments.
    Where am I going wrong ..
    Thanks,

  • Problem with Email Activity in BPEL

    I am relatively new to BPEL, and I'm trying to add an Email Activity. My problem is this:
    I can get the email to send, but I have to shut down the SOA Suite to make that happen.
    Any ideas on what could be causing this?
    Any help in this matter would be greatly appreciated.
    Thanks...

    Yes. The messages do seem to be all accumulating until the shutdown until the suite is shut down.
    I'm just beginning to play around with the Email activity, so I'm hard-coding all the parameters. We're currently using SOA Suite 10.1.3.1. I'm not using any attachments in the email, however, it seems that I can't turn the multi-part check box off. I un-check it, and apply, but when I go back into that screen, it's checked again.
    Here's the code for the email activity:
    <scope name="Email_1">
    <bpelx:annotation>
    <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
    </bpelx:annotation>
    <variables>
    <variable name="varNotificationReq"
    messageType="ns1:EmailNotificationRequest"/>
    <variable name="varNotificationResponse"
    messageType="ns1:ArrayOfResponse"/>
    <variable name="NotificationServiceFaultVariable"
    messageType="ns1:NotificationServiceErrorMessage"/>
    </variables>
    <sequence name="Sequence_1">
    <assign name="EmailParamsAssign">
    <copy>
    <from expression="string('Default')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:FromAccountName"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Bcc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Cc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:ReplyToAddress"/>
    </copy>
    <copy>
    <from expression="string('Testing BPEL Email Activity')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Subject"/>
    </copy>
    <copy>
    <from expression="string('[email protected]')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:To"/>
    </copy>
    <copy>
    <from expression="string('Test')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Content/ns1:ContentBody"/>
    </copy>
    <copy>
    <from expression="string('text/html; charset=UTF-8')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Content/ns1:MimeType"/>
    </copy>
    </assign>
    <invoke name="InvokeNotificationService"
    partnerLink="NotificationService"
    portType="ns1:NotificationService"
    operation="sendEmailNotification"
    inputVariable="varNotificationReq"
    outputVariable="varNotificationResponse"/>
    </sequence>
    </scope>
    Thanks for your continued help.

  • Email Activity not sending emails for one domain - 10.1.3.4 MLR#10

    I have four domains in my BPELConsole. My evey BPEL process has CatchAll block and I'm sending email notification with fault details.
    Somehow, my BPEL processes from three domains are sending emails properly but myDomain4 is not sending emails even after successful execution of Email Activity.
    1) I have compared the Email code with processes in other domain and they are similar.
    2) orabpel.bpelnotification is not logging any error for this notification.
    3) I never received any email from this domain. There was no error in logs during domain creation.
    3) I am getting following in logs that sending email was successfully executed. It received Notification ID too
    <2010-09-22 07:24:44,530> <DEBUG> <myDomain4.collaxa.cube.services> <oracle.bpel.services.notification.queue.QueueConnectionPool::QueueConnectionPool> Fetched a queue connection from pool java:comp/env/jms/Queue/NotificationSenderQueueConnectionFactory, available connections=4
    <2010-09-22 07:24:44,534> <DEBUG> <myDomain4.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Start of send(type,caller,message) type = email caller = BPEL
    <2010-09-22 07:24:44,534> <DEBUG> <myDomain4.collaxa.cube.services> <oracle.bpel.services.notification.queue.sender.Publisher::init> Notification ID 12834c63e81c20d0:-71064af1:42b35e5dab4:-7283
    Please help/hint for any possible solution/debugging.

    sometimes i have seen emails not being sent when the async invokes takes more time than the overall completion.. And yes, we might still see successful log as emails sent. FYI - I am with 10.1.3.3.1 MLR #8.
    did you try just creating a email only process? switch off all other processes in that domain and initiate only this email process to see what happens..

  • Email Activity Not sending email when BPEL process fails

    In 11g SOASuite I have a BPEL process which does the following,
    1) Receive response from client
    2) Email activity - Notify with an id received in the request as content
    3) Insert data into a table using db adapter
    Whenever db adapter has some key violations or issues, I notice that no emails are getting dispatched. When I look at EM console it displays that txn has been rolled back after 3rd step. I understand that but it makes me ask this question,
    How can I make the process to send an email at step2 irrespective of an error that happens down stream at step-3? How to make email activity not part of this Txn scope?
    It works as expected(emails are dispatched) when there are no issues at step-3.

    Hi,
    In order to not rollback your transactions, you need to hit a dehydration point, meaning, save your process into the db store and perform a commit until that point.
    It sounds like a simple process, so you can drag a checkpoint activity after the email activity.
    That is one option. Try, and see if it works for you.
    Arik

  • Email activity not working on Clients site

    Hi,
    I created a Bpel process that contains an email activity, It works fine when I am connected to the Oracle network through VPN and while i am in the Oracle office.
    But when I am at the clients site or connected through VPN, it doesnt work at all.
    when I configure my ns_emails.xml to Oracle's info, it works fine but when its configured to clients info, it doesnt work.
    I have configured ns_emails.xml and wf_config.xml
    This is my ns_emails.xml when I am at the clients site._
    note:_ Since I am not using the Default domain for deployment, I changed the &lt;Name&gt; under &lt;EmailAccount&gt; to cdmsd since I am deploying my Bpel processes to the cdmsd domain.
    ^&lt;EmailAccounts xmlns="http://xmlns.oracle.com/ias/pcbpel/NotificationService"^
    ^ EmailMimeCharset=""^
    ^ NotificationMode="EMAIL"&gt;^
    ^ &lt;EmailAccount&gt;^
    ^ *&lt;Name&gt;cdmsd&lt;/Name&gt;*^
    ^ &lt;GeneralSettings&gt;^
    ^ &lt;FromName&gt;Oracle BPM&lt;/FromName&gt;^
    ^ &lt;FromAddress&gt;[email protected]&lt;/FromAddress&gt;^
    ^ &lt;/GeneralSettings&gt;^
    ^ &lt;OutgoingServerSettings&gt;^
    ^ &lt;SMTPHost&gt;mail.co.la.ca.us&lt;/SMTPHost&gt;^
    ^ &lt;SMTPPort&gt;25&lt;/SMTPPort&gt;^
    ^ &lt;/OutgoingServerSettings&gt;^
    ^ &lt;IncomingServerSettings&gt;^
    ^ &lt;Server&gt;mail.co.la.ca.us&lt;/Server&gt;^
    ^ &lt;Port&gt;25&lt;/Port&gt;^
    ^ &lt;Protocol&gt;SMTP&lt;/Protocol&gt;^
    ^ &lt;UserName&gt;[email protected]&lt;/UserName&gt;^
    ^ &lt;Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService"&gt;Temp123&lt;/Password&gt;^
    ^ &lt;UseSSL&gt;true&lt;/UseSSL&gt;^
    ^ &lt;Folder&gt;Inbox&lt;/Folder&gt;^
    ^ &lt;PollingFrequency&gt;1&lt;/PollingFrequency&gt;^
    ^ &lt;PostReadOperation&gt;^
    ^ &lt;MarkAsRead/&gt;^
    ^ &lt;/PostReadOperation&gt;^
    ^ &lt;/IncomingServerSettings&gt;^
    ^ &lt;/EmailAccount&gt;^
    ^&lt;/EmailAccounts&gt;^
    and for wf_config.xml I only add one line_
    ^&lt;property name="oracle.bpel.services.notification.publisher_interval" value="1" /&gt;^
    I dont understand why its not working while I am on the clients site ?? any ideas ??
    could it be a network issue on their side ??

    I pinged my email server and I got the following:
    {size:12pt}
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),{size}
    Edited by: user9976478 on Jan 30, 2009 2:09 PM

  • Variable passing to an email activity

    Hi,
    In my simple process flow I have:
    START--------TRANSFORMATION (procedure call)--------EMAIL ACTIVITY--------END
    My procedure has an output parameter (which consists of an email address).
    In the transformation, the output parameter is passed into a variable VAR1.
    In my EMAIL activity, the TO_ADDRESS parameter is assigned VAR1.
    My problem is, when I validate the processflow it comes up with the error:
    "VLD-10034: Parameter TO_ADDRESS is bound to variable VAR1, but VAR1 has no default value set. For a processflow to be valid the bound parameter or variable should have a default value."
    So I assigned the variable VAR1 a default value (I entered a valid email address), the processflow validates successfully, but when I run it, it fails with an error.
    It's the variable that's causing a problem as when I hard-code an email address in the TO_ADDRESS parameter it runs without a problem.
    Do you have any ideas why the variable is failing when a default value is set?
    Thanks for any replies
    Ansel

    Hi Armands
    I managed to sort this one out.
    I stripped out the transformation from the processflow to simplify it as much as possible.
    So I had:
    START-------- EMAIL ACTIVITY--------END
    The problem was where it was forcing me to enter a default value for the variable VAR1 (where VAR1 was assigned to the TO_ADDRESS parameter in the email activity).
    I entered an email address as the default value in VAR1, and it failed. So I changed the value to 'aaa', and it failed.
    But it DIDN'T fail when I entered '1' (even though the variable is of a string type).
    So it's working now.
    Thank you for taking the time to try to understand my problem.
    Ansel

  • Error while using Email Activity

    Env:
    Win XP SP2
    SOA Dev Preview 10.1.3.1
    Jdev
    Prob: Am trying to send an email notification to my email id. I create a new BPEL Synchronous process and drag and drop the email activity into the process. I set the details into "to", "subject" and "body" parameters.
    And then I try to deploy the process.
    It throws an error "URI is not hierarchical"
    Can some one let me know the reasons for it.
    Thanx
    AJ

    Thanx Clemens,
    The xml that you had mentioned is same as the one I am working with. When I double click on the error in the error panel displayed in JDev, the cursor moves to the first line in the bpel file which says "<?xml version = "1.0" encoding = "UTF-8" ?>".
    I am still unclear as to what is the issue with the code that I am using. Following is my bpel file. Also, please let me know if there are any libraries or jar files to be included for using email activity in the bpel process.
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <!--
    Oracle JDeveloper BPEL Designer
    Created: Fri Aug 25 15:11:47 IST 2006
    Author: ashutoj
    Purpose: Synchronous BPEL Process
    -->
    <process name="SendEmailNotification"
    targetNamespace="http://xmlns.oracle.com/SendEmailNotification"
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns1="http://xmlns.oracle.com/ias/pcbpel/NotificationService"
    xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:client="http://xmlns.oracle.com/SendEmailNotification"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:ora="http://schemas.oracle.com/xpath/extension"
    xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
    <!--
    PARTNERLINKS
    List of services participating in this BPEL process
    -->
    <partnerLinks>
    <!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:SendEmailNotification"
    myRole="SendEmailNotificationProvider"/>
    <partnerLink name="NotificationService"
    partnerRole="NotificationServiceProvider"
    partnerLinkType="ns1:NotificationServiceLink"/>
    </partnerLinks>
    <!--
    VARIABLES
    List of messages and XML documents used within this BPEL process
    -->
    <variables>
    <!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable"
    messageType="client:SendEmailNotificationRequestMessage"/>
    <!-- Reference to the message that will be returned to the requester-->
    <variable name="outputVariable"
    messageType="client:SendEmailNotificationResponseMessage"/>
    </variables>
    <!--
    ORCHESTRATION LOGIC
    Set of activities coordinating the flow of messages across the
    services integrated within this business process
    -->
    <sequence name="main">
    <!-- Receive input from requestor. (Note: This maps to operation defined in SendEmailNotification.wsdl) -->
    <receive name="receiveInput" partnerLink="client"
    portType="client:SendEmailNotification" operation="process"
    variable="inputVariable" createInstance="yes"/>
    <!-- Generate reply to synchronous request -->
    <scope name="Email_1">
    <bpelx:annotation>
    <bpelx:pattern patternName="bpelx:email"></bpelx:pattern>
    </bpelx:annotation>
    <variables>
    <variable name="varNotificationReq"
    messageType="ns1:EmailNotificationRequest"/>
    <variable name="varNotificationResponse"
    messageType="ns1:ArrayOfResponse"/>
    <variable name="NotificationServiceFaultVariable"
    messageType="ns1:NotificationServiceErrorMessage"/>
    </variables>
    <sequence name="Sequence_1">
    <assign name="EmailParamsAssign">
    <copy>
    <from expression="string('Default')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:FromAccountName"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Bcc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Cc"/>
    </copy>
    <copy>
    <from expression="string('')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:ReplyToAddress"/>
    </copy>
    <copy>
    <from expression="string('hi')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Subject"/>
    </copy>
    <copy>
    <from expression="string('[email protected]')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:To"/>
    </copy>
    <copy>
    <from expression="string('checking mail from bpel pm')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Content/ns1:ContentBody"/>
    </copy>
    <copy>
    <from expression="string('text/html; charset=UTF-8')"/>
    <to variable="varNotificationReq" part="EmailPayload"
    query="/EmailPayload/ns1:Content/ns1:MimeType"/>
    </copy>
    </assign>
    <invoke name="InvokeNotificationService"
    partnerLink="NotificationService"
    portType="ns1:NotificationService"
    operation="sendEmailNotification"
    inputVariable="varNotificationReq"
    outputVariable="varNotificationResponse"/>
    </sequence>
    </scope>
    <assign name="Assign_1">
    <copy>
    <from expression="'Mail Sent'"/>
    <to variable="outputVariable" part="payload"
    query="/client:SendEmailNotificationProcessResponse/client:result"/>
    </copy>
    </assign>
    <reply name="replyOutput" partnerLink="client"
    portType="client:SendEmailNotification" operation="process"
    variable="outputVariable"/>
    </sequence>
    </process>

  • How do I send attachments in email as an icon

    How do I send attachments in email as an icon

    I mean when I have dropped a photo into the email how do I then change that to an icon so that other non Mac users can see it easier

  • How do I open attachments in emails I have received?

    How do I open attachments in emails I receive to view them before I send them on to friends?

    Often, pictures or simple documents (eg, one-page PDFs) will appear directly within the message itself. You can also use the Quick Look button next to the attachments line (in the message header) to view and scroll through the files (provided they're viewable, and aren't compressed or binary files).
    You can also click Save next to Quick Look to save the files to your Downloads folder.
    Matt

  • How to create Incoming Email Activity using BAPI or Function module

    To create an Incoming Email Activity using BAPI 'BAPI_ACTIVITYCRM_CREATEMULTI' or using 'CRM_ORDER_MAINTAIN' . what parameters i need to pass to a bapi.
    Suggest me with a solution.
    Regards,
    Sanjani

    For activity you must fill the following structures of 'CRM_ORDER_MAINTAIN'...
      CALL FUNCTION 'CRM_ORDER_MAINTAIN'
        EXPORTING
          it_activity_h             = t_activity_h
          iv_collect_exceptions = ''
        CHANGING
          ct_orderadm_h         = t_orderadm_h
          ct_input_fields       = t_input_fields
        EXCEPTIONS
          error_occurred        = 1
          document_locked       = 2
          no_change_allowed     = 3
          no_authority          = 4
          OTHERS                = 5.
    And at the end you must use also 'CRM_ORDER_SAVE' to performe the save.
    Regards.

  • Email Address not picked in email activity

        Hello,
    We are trying to create a outbound email w.r.t Lead (BP has Email address) , now in the outbound email TO field is not populated with Email address of the BP , we have maintained copy control between lead and Outbound email activity too.
    All the other info is getting copied into Outbound email activity.
    Any inputs please?
    Merci
    Sweta

    Hi Swetha,
    Pls check this step once, am not sure this is exactly the solution, but have a try.
    Customer Relationship Management --> Basic Functions --> One-to-One E-Mail -->Assign Transaction Types --
    Or try as below once:
    1. find the Component name of the field
    2.  go to BSP_wd_cmpwb, component structure browser -- views---pick your component view -
         -- Request processing --- DO_PREPARE_OUTPUT  -- double click on ' fill_to_field( )'
    3. it will direct you to teh code, put the break point ''CRM_EMAIL_READ_PARTNER_ADDRESS'' and debug
    Regards

  • How to edit the value in the email activity in process flow

    I have an email activity in my process flow.
    I want to change the value for the message body of the email activity. But it is not editable. While creation all the columns are in editable mode and after deploying and testing, i want to change the body of the email to be sent.
    How can i do it now? Please advice. This issue is in 6.0.4 release.
    Edited by: 910070 on Feb 17, 2012 12:48 AM

    got the solution after so much research !
    in 6.0.4, only way we can change the value for the message body or subject is to change the associate email procedure. which is something like edx_rpt_email.

  • PDFmaker not converting Jpg attachments to emails in Microsoft Outlook 2013

    I am having problems converting jpg attachments to emails in Microsoft Outlook 2013 using PDFmaker. I'm running Adobe Acrobat 11 and just updated it to the latest version and that did not solve the problem.
    I can convert the emails and Word attachments and can convert the jpgs manually by saving them to my desk top and then adding them as attachments to the resulting PDF but I have several emails each was several attachments that I want to save and it will take me hours to do it manually.
    I was thinking there might be some security setting on the jpgs that is preventing PDFmaker from automatically converting them.
    I already confirmed that the Preference Conversion Setting is selected to include all attachments in the Adobe PDF. I also unselected the box that reads "block download of external content" but it did not help.

    Manual method is a difficult task .You can easily transfer your mails from the Thunderbird to MS Outlook using third party conversion software.i faced the same problem.i tried the following utility. It converts all my Thunderbird accounts to a single PST.you can also try the free demo version of the software.
    http://www.datacarelab.com/software-for-mbox-to-outlook.php

Maybe you are looking for

  • Addition in drill down option in report RMCE0200 for transaction MC$4

    Hello Gurus , I am working on a requirement assciated with report RMCE0200 (Transaction MC$4). This a standard SAP report. After execution of report when we go to Switch Drilldown option, it gives, couple of standard SAP drilldown options like drilld

  • Brand new ipod

    I'm trying to help my wife with her new ipod nano.  I'm pretty computer literate (PC) but not in thinking "Apple" or iTunes.  I don't get how it works. I downloaded iTunes to my laptop and it works.  I had it scanned for existing media and it found a

  • Data used

    Ok. I have a question.....I talked to 3 different people at Verizon last night and got 3 different answers. My husband and I both have the Iphone 4. When sending an Imessage to him from my phone or vise versa.....is data used????

  • Problem activating Serial number

    I have just purchased a new laptop (with Windows 8) I have loaded my old Photoshop CS2 but when I try to activate the serial number I am being told that online activation is not available? What do I do?

  • Why cant i close and save? so the next time i open firefox the same sites come up.

    Before i installed the latest firefox, a window poped up when i closed firefox asking what i wanted to do. save and close, just close or abort. after the update i only get 2 alternatives close or abort. I want the last alternative back so i can close