Email Activity dispatch exception

I am trying to send email in a BPEL process, I am getting the following exception
(in simple bpel process the email activity is working fine)
<2008-08-12 13:12:10,137> <ERROR> <default.collaxa.cube.engine.dispatch> <BaseScheduledWorker::process> Failed to handle dispatch message ... exception ORABPEL-05002
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException
ORABPEL-05002
Message handle error.
An exception occurred while attempting to process the message "com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: An exception occurred during transaction completion: ; nested exception is: javax.transaction.RollbackException
     at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:171)
     at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
     at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
     at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
     at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
     at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
     at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
     at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
     at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
     at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
     at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
     at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
     at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
     at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
     at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
     at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
     at java.lang.Thread.run(Thread.java:595)
Any idea why I am getting this error.

actually my email activity is in Catch block,
when my db adapter encounters any errors i am catching the exception then i am sending email.
before email activity there are four activities, all of them were executed properly.
When the process is trying to execute email activity, it is throwing the exception.
But I am sure it is nothing to do with email activity.
I came across one of the forums saying that it is a bug(it is not related to timeout).
But they didn't tell which patch to apply and it is said that dev team is working on it.
Thanks and Regards
V Kumar

Similar Messages

  • 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

  • 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 Activity Creation Problem

    I m new in MS Dynamic CRM 2013. I m trying to make a email activity on the update of a issue (case). but I m getting error at:
     CreateResponse resp = (CreateResponse)slos.Execute(reqActivity);
    I m attaching the whole code here:
    // <copyright file="PostIssueUpdate.cs" company="">
    // Copyright (c) 2015 All Rights Reserved
    // </copyright>
    // <author></author>
    // <date>1/29/2015 2:37:35 PM</date>
    // <summary>Implements the PostIssueUpdate Plugin.</summary>
    // <auto-generated>
    // This code was generated by a tool.
    // Runtime Version:4.0.30319.1
    // </auto-generated>
    namespace CrmVSSolution1.Plugins
    using System;
    using System.ServiceModel;
    using Microsoft.Xrm.Sdk;
    using System.ServiceModel.Description;
    using System.Text;
    using System.Collections.Generic;
    using System.Linq;
    // These namespaces are found in the Microsoft.Xrm.Sdk.dll assembly
    // found in the SDK\bin folder.
    using Microsoft.Xrm.Sdk.Query;
    using Microsoft.Xrm.Sdk.Discovery;
    using Microsoft.Xrm.Sdk.Messages;
    using Microsoft.Xrm.Sdk.Client;
    using Microsoft.Crm.Sdk.Messages;
    /// <summary>
    /// PostIssueUpdate Plugin.
    /// Fires when the following attributes are updated:
    /// All Attributes
    /// </summary>
    public class PostIssueUpdate: Plugin
    /// <summary>
    /// Initializes a new instance of the <see cref="PostIssueUpdate"/> class.
    /// </summary>
    public PostIssueUpdate()
    : base(typeof(PostIssueUpdate))
    base.RegisteredEvents.Add(new Tuple<int, string, string, Action<LocalPluginContext>>(40, "Update", "incident", new Action<LocalPluginContext>(ExecutePostIssueUpdate)));
    // Note : you can register for more events here if this plugin is not specific to an individual entity and message combination.
    // You may also need to update your RegisterFile.crmregister plug-in registration file to reflect any change.
    /// <summary>
    /// Executes the plug-in.
    /// </summary>
    /// <param name="localContext">The <see cref="LocalPluginContext"/> which contains the
    /// <see cref="IPluginExecutionContext"/>,
    /// <see cref="IOrganizationService"/>
    /// and <see cref="ITracingService"/>
    /// </param>
    /// <remarks>
    /// For improved performance, Microsoft Dynamics CRM caches plug-in instances.
    /// The plug-in's Execute method should be written to be stateless as the constructor
    /// is not called for every invocation of the plug-in. Also, multiple system threads
    /// could execute the plug-in at the same time. All per invocation state information
    /// is stored in the context. This means that you should not use global variables in plug-ins.
    /// </remarks>
    protected void ExecutePostIssueUpdate(LocalPluginContext localContext)
    if (localContext == null)
    throw new ArgumentNullException("localContext");
    // TODO: Implement your custom Plug-in business logic.
    IPluginExecutionContext context = localContext.PluginExecutionContext;
    IOrganizationService service = localContext.OrganizationService;
    if (context.InputParameters.Contains("Target") &&
    context.InputParameters["Target"] is Entity)
    // Obtain the target entity from the input parmameters.
    Entity entity = (Entity)context.InputParameters["Target"];
    if (entity.LogicalName == "incident")
    string entityDescription = "There is no note found";
    try
    if (entity.Attributes.Contains(""))
    entity.Attributes["description"] = entityDescription;
    CreateRequest reqActivity = new CreateRequest();
    Entity newEmail = new Entity("email");
    newEmail["subject"] = "This is for testing";
    newEmail["description"] = entityDescription;
    Entity ap = new Entity();
    Entity ap2 = new Entity();
    ap = new Entity("activityparty");
    ap["addressused"] = "[email protected]";
    Entity[] aryTo = { ap };
    newEmail["to"] = aryTo;
    ap2 = new Entity("activityparty");
    ap2["partyid"] = new EntityReference("systemuser", new Guid(""));
    Entity[] aryFrom = { ap2 };
    newEmail["from"] = aryFrom;
    newEmail["regardingobjectid"] = new EntityReference("account", new Guid(""));
    reqActivity.Target = newEmail;
    CreateResponse resp = (CreateResponse)slos.Execute(reqActivity);
    catch (FaultException ex)
    throw new InvalidPluginExecutionException("An error occurred in the plug-in.", ex);

    Hello,
    Could you please point to the part of your code where you have declared "slos"? I rechecked it twice and I see nothing. Also could you please provide an exception message that you are getting?
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • Qs on setting ReplyTo multiple address in EMail activity

    Hi,
    I am trying to put EMail activity, in that i am trying to put reply-to as two different addrerss like
    [email protected],[email protected]
    When i run bpel process i get following exception...
    07/11/13 13:39:03 javax.mail.internet.AddressException: Illegal address in string ``[email protected], [email protected]''
    07/11/13 13:39:03 at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:68)
    07/11/13 13:39:03 at oracle.tip.pc.services.notification.email.EmailDriver.send(EmailDriver.java:157)
    07/11/13 13:39:03 at oracle.tip.pc.services.notification.DefaultNotificationServiceImpl.sendEmailNotification(DefaultNotificationServiceImpl.java:251)
    07/11/13 13:39:03 at oracle.tip.pc.services.notification.NotificationServiceImpl.sendEmailNotification(NotificationServiceImpl.java:271)
    07/11/13 13:39:03 at oracle.bpel.services.notification.queue.sender.MDBConsumer.deliverNotification(MDBConsumer.java:256)
    07/11/13 13:39:03 at oracle.bpel.services.notification.queue.sender.MDBConsumer.onMessage(MDBConsumer.java:137)
    07/11/13 13:39:03 at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
    07/11/13 13:39:03 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    07/11/13 13:39:03 at java.lang.reflect.Method.invoke(Method.java:585)
    07/11/13 13:39:03 at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    07/11/13 13:39:03 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/11/13 13:39:03 at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    07/11/13 13:39:03 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/11/13 13:39:03 at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    07/11/13 13:39:03 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    07/11/13 13:39:03 at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    07/11/13 13:39:03 at com.evermind.server.ejb.MessageDrivenConsumer.onMessage(MessageDrivenConsumer.java:347)
    07/11/13 13:39:03 at com.evermind.server.ejb.MessageDrivenConsumer.processMessages(MessageDrivenConsumer.java:233)
    07/11/13 13:39:03 at com.evermind.server.ejb.MessageDrivenConsumer.run(MessageDrivenConsumer.java:169)
    07/11/13 13:39:03 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    07/11/13 13:39:03 at java.lang.Thread.run(Thread.java:595)
    <2007-11-13 13:41:45,619> <INFO> <dladd.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::uninit Shutting down the JCA activation agent, processId='bpel://localhost/dladd/VectrenCMErrHand~1.0/', activation properties={portType=DEQUEUE_ptt}
    <2007-11-13 13:41:45,620> <INFO> <dladd.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - performing endpointDeactivation for portType=DEQUEUE_ptt, operation=DEQUEUE
    <2007-11-13 13:41:45,626> <INFO> <dladd.collaxa.cube.activation> <AQ Adapter::Inbound> MessageReader_close: Closed MessageReader for queue WF_BPEL_Q (type 2, consumer = ORA_6d2k2gpo6gqj0dhh74p32chj71)
    <2007-11-13 13:41:45,782> <INFO> <dladd.collaxa.cube.compiler> validating "/u4290/app/oa11dev/orapb11/soa1013/bpel/domains/dladd/tmp/.bpel_VectrenCMErrHand_1.0_26235c7b6f62e7bcbaa3217a2de6f684.tmp/VectrenCMErrHand.bpel" ...
    <2007-11-13 13:41:46,422> <INFO> <dladd.collaxa.cube.engine.deployment> <CubeProcessFactory::generateProcessClass>
    But when i try to set single address it works. So sounds like Oracle is not parsing before calling java api to set SetReplyTo([] Address) method.
    Could some one help on this?

    Hi Jack,
    I am facing some issue with sending mail using email-Activity.
    What I am trying is simply calling Email Activity in aysnchrnous BPEL process.
    My ns_mail.xml has the following entries.
    <EmailAccount>
    <Name>Default</Name>
    <GeneralSettings>
    <FromName>moodle</FromName>
    <FromAddress>[email protected]</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>192.168.100.155</SMTPHost>
    <SMTPPort>25</SMTPPort>
    </OutgoingServerSettings>
    <IncomingServerSettings>
    <SMTPHost>192.168.100.155</SMTPHost>
    <SMTPPort>25</SMTPPort>
    </IncomingServerSettings>
    </EmailAccount>
    <EmailAccount>
    <Name>moodle</Name>
    <GeneralSettings>
    <FromName>moodle</FromName>
    <FromAddress>[email protected]</FromAddress>
    </GeneralSettings>
    <OutgoingServerSettings>
    <SMTPHost>192.168.100.155</SMTPHost>
    <SMTPPort>25</SMTPPort>
    </OutgoingServerSettings>
    <IncomingServerSettings>
    <SMTPHost>192.168.100.155</SMTPHost>
    <SMTPPort>25</SMTPPort>
    </IncomingServerSettings>
    <!--<IncomingServerSettings>
    <Server>yourdomain.com</Server>
    <Port>110</Port>
    <Protocol>pop3</Protocol>
    <UserName>accountId</UserName>
    <Password ns0:encrypted="false" xmlns:ns0="http://xmlns.oracle.com/ias/pcbpel/NotificationService">password</Password>
    <UseSSL>false</UseSSL>
    <Folder>Inbox</Folder>
    <PollingFrequency>1</PollingFrequency>
    <PostReadOperation>
    <MarkAsRead/>
    </PostReadOperation>
    </IncomingServerSettings> -->
    </EmailAccount>
    In the BPEL process following are the entries
    From Account -->moodle
    To -->[email protected]
    CC-->[email protected]
    Sub-->Test Mail
    Boby-->Test Mail
    The error I got is Following
    From Account is not configured.
    From account moodle is not configured.
    Can you provide me some inputs like what all you did .
    Regards
    Lalit

  • OPEN SSL certificate generation issue--bpel email activity

    Hi all,
    I need to send a mail from bpel using email activity.
    I made all settings changes.I downloaded OPENSSL software and I need to generate smtp ssl certificates?
    But while generation of ssl certificates I am getting some issue
    OpenSSL> openssl s_client -starttls smtp -crlf -connect smtp.gmail.com:465>
    gmail.cert
    openssl:Error: 'openssl' is an invalid command.
    Standard commands
    asn1parse ca ciphers crl crl2pkcs7
    dgst dh dhparam dsa dsaparam
    ec ecparam enc engine errstr
    gendh gendsa genrsa nseq ocsp
    passwd pkcs12 pkcs7 pkcs8 prime
    rand req rsa rsautl s_client
    s_server s_time sess_id smime speed
    spkac verify version x509
    Message Digest commands (see the `dgst' command for more details)
    md2 md4 md5 rmd160 sha
    sha1
    Cipher commands (see the `enc' command for more details)
    aes-128-cbc aes-128-ecb aes-192-cbc aes-192-ecb aes-256-cbc
    aes-256-ecb base64 bf bf-cbc bf-cfb
    bf-ecb bf-ofb cast cast-cbc cast5-cbc
    cast5-cfb cast5-ecb cast5-ofb des des-cbc
    des-cfb des-ecb des-ede des-ede-cbc des-ede-cfb
    des-ede-ofb des-ede3 des-ede3-cbc des-ede3-cfb des-ede3-ofb
    des-ofb des3 desx idea idea-cbc
    idea-cfb idea-ecb idea-ofb rc2 rc2-40-cbc
    rc2-64-cbc rc2-cbc rc2-cfb rc2-ecb rc2-ofb
    rc4 rc4-40
    Can any one suggest me ,What I entered is correct or not?how to generate smtp certificates?
    Thanks in advance
    Krishna

    Fabian,
    Are you familiar with Firefox OS? The reason I say this is because the email client cannot create a certificate excaption. This is actually by design. This is by design: https://wiki.mozilla.org/Gaia/Email/Features#Security
    This support request at Mozilla was placed specifically for the Firefox OS product, for which only a single email client exists.
    That being said the good folks on the Mozilla Bugzilla, were able to show me how to look up another alias for these servers which does in fact work and does in fact match the SSL certificates. Though Dreamhost support could not provide me with said information, and said information does not in fact exist in the DreamHost wiki.
    I find repeated insistance from Dreamhost represenatives that I should just live with SSL certificate exceptions, when there are actual valid server names in existence to match the certificates in question, rediculous.
    The fact that you are posting this non solution for a product it isn't even applicable for is beyond unhelpful. It actually serves to muddy the waters.

  • 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 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>

  • 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

  • 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.

  • 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,

  • 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

Maybe you are looking for

  • My computer no longer recognizes my password

    my imac does not seem to recognize my password.  now i cannot do anything. i never had install media.  what can i do? Model Name: iMac   Model Identifier: iMac7,1   Processor Name: Intel Core 2 Duo   Processor Speed: 2 GHz   Number Of Processors: 1  

  • Zip file created in Snow Leopard can't be opened on a PC

    Hi, I've created a zip file of a folder containing Word and pdf files using File>Compress in Snow Leopard. After emailing to clients, they cannot open the zip file on their PCs. Any help? I thought zip was supposed to be universal. Thanks in advance!

  • Where do you locate your location on the iPad?

    Where can you check your location on the iPad?

  • Invalid serial number for Elements 9 worked fine before

    I Had to change a bad hard drive. Before that my Photoshop Elements 9 worked fine. Now I get a message the number is invalid. I paid for it with a new Dell computer and Adobe won't help. These keep passing me to Dell even though it is their serial nu

  • Library Dilema & New Computer

    Hi people. I have over 80 GIG of music and movies in my library. I have given ratings to over 1/2 of the music alone (44 GIG of music). My computer's processor died, so I am on a new computer now. I took the old hard drive and put it into my new comp