Error in sending Notification email with Embedded CLOB message in the body

Hi,
Workflow version is : 2.6.3.5
Apps Version is 11.5.10.1
Oracle Database 9.2.0.5.0
I am embedding a CLOB message document attribute to my Notification
Message Body.
Everything works fine when I check my notifications in the "workflow worklist"
i.e. Oracle Apps. <Notifications> tab.
but the emails are not going to the users and below message is displayed in the
status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
successfully)
Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
Workflow Errors: XXDBCAPR, SDA-10314
Failed Activity Send Approve_Reject Responce Notification
Activity Type Notice
Error Name WF_ERROR
Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
Error Stack
thanks,
Shashi
NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.

Hi,
Below solution worked for us :
Whenever the document message related procedure is modified and compiled we need to STOP and START all the workflow related services,
Homepage -> Workflow Manager -> Service Components => STOP all Services => Start All Services
NOTE: Even when we bounced the database, application server the error is still occuring, only when we STOP and START the services whenever we compiled the document message procedures then the emails are getting processed.
The Metalink Forum note 588112.992 (ORA-04061: existing state of has been invalidated ORA-04061: existing state of package) is helpful in getting the solution Below is a snippet of the same :
From: David Hsu 01-Aug-05 20:06
Subject: Re : ORA-04061: existing state of has been invalidated ORA-04061:
existing state of package
Loren,
we had a similar ORA-04061 error when we tried to compile a Workflow package
after we modified it with new attributes. What we were told was that some
workflow process or listener is still "thinking" the package is invalid even
though it is valid. Whenever packages referred by the workflow process is
changed, the Agent listeners and mailer must be bounced. Worst case scenario
if the error still persist is that the database may have to be bounced as
well.
Please try bouncing the Agent listeners or, if it possible, bounce the
database and see if you are still getting the error after that.
The listeners that you need to bounce are all the listeners that you have
enabled under OAM > Workflow Manager > Service Components,
including the Workflow Notification Mailer.
Hope this helps thanks,
Shashi

Similar Messages

  • CLOB: Error in sending Notification email with Embedded message in the body

    Hi,
    Oracle Database 9.2.0.5.0
    Workflow version is : 2.6.3.5
    Apps Version is 11.5.10.1
    I am embedding a CLOB message document attribute to my Notification
    Message Body.
    Everything works fine when I check my notifications in the "workflow worklist"
    i.e. Oracle Apps. <Notifications> tab.
    but the emails are not going to the users and below message is displayed in the
    status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
    successfully)
    Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
    Workflow Errors: XXDBCAPR, SDA-10314
    Failed Activity Send Approve_Reject Responce Notification
    Activity Type Notice
    Error Name WF_ERROR
    Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
    Error Stack
    thanks,
    Shashi
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.

    Hi,
    Below solution worked for us :
    Whenever the document message related procedure is modified and compiled we need to STOP and START all the workflow related services,
    Homepage -> Workflow Manager -> Service Components => STOP all Services => Start All Services
    NOTE: Even when we bounced the database, application server the error is still occuring, only when we STOP and START the services whenever we compiled the document message procedures then the emails are getting processed.
    Metalink Forum note 588112.992 (ORA-04061: existing state of has been invalidated ORA-04061: existing state of package) is helpful in getting the solution Below is a snippet of the same :
    From: David Hsu 01-Aug-05 20:06
    Subject: Re : ORA-04061: existing state of has been invalidated ORA-04061:
    existing state of package
    Loren,
    we had a similar ORA-04061 error when we tried to compile a Workflow package
    after we modified it with new attributes. What we were told was that some
    workflow process or listener is still "thinking" the package is invalid even
    though it is valid. Whenever packages referred by the workflow process is
    changed, the Agent listeners and mailer must be bounced. Worst case scenario
    if the error still persist is that the database may have to be bounced as
    well.
    Please try bouncing the Agent listeners or, if it possible, bounce the
    database and see if you are still getting the error after that.
    The listeners that you need to bounce are all the listeners that you have
    enabled under OAM > Workflow Manager > Service Components,
    including the Workflow Notification Mailer.
    Hope this helps thanks,
    Shashi

  • Want to send a email with images and text in the body of email in iOS

    In iOS, we have written a code to send an email,  with embedded images and text in the body of the email ( not attachment) using mail composer. It works well with iOS devices like iPhone and iPad, but does not work in window based OS. Can anybody help. The code is

    Thanks James !, do you have an idea how to  find the window resource which I belive will be included in our appllication pack.
    In above  I have missed to copy the code,below is the code. This might help you to help me.
    NSMutableString *imgContent = [[[NSMutableString alloc] initWithString:@"<html><body>"] retain];
    UIImage *imageData = [UIImage imageNamed:@"Midhun.png"];
    NSData *imageDataInBase64 = [NSData dataWithData:UIImagePNGRepresentation(imageData)];
    NSString *base64String = [imageDataInBase64 base64EncodedString];
    [imgContent appendString:[NSString stringWithFormat:@"<p><b><img src='data:image/png;base64,%@'></b></p>",base64String]];
    [imgContent appendString:@"</body></html>"];
    MFMailComposeViewController *emailWin = [[MFMailComposeViewController alloc] init];
    [emailWin setMessageBody:imgContent isHTML:YES];

  • When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    When I send an email with Mail, I often confuse the account which I'm using. The result is that I send a message with the wrong account! Is there a way to avoid this (for example a reminder before the email is sent)?

    Hi, thanks for the answer, I did that already. Unfortunatly this doesn't help me at all, as I often forget to check the menu. For me composing the message is writing the text, the subject, the person to who is addressed and than press "send".
    I often forget to check the "from", and this is a problem because the software select itself one of the accounts.
    Isn't there a way at least to put as a default a blank field instead of one of the accounts? or an account which doesn't work so if I forget to specify the "from" I will be rnotofied that the message can't be sent.
    I guess this could be a rather common problem for many people!
    Thanks
    Sergio

  • When I send an email with a photoshop file attached, the recipient receives it "flattened". How do I change this?

    when I send an email with a photoshop file attached, the recipient receives it "flattened". How do I change this?

    I've sent psd files to various people without issues, however you might want to try something like www.filedropper.com to make sure it's not that they can't open your version of psd file.
    You may also want to zip the file using the built in archiving software, simply right click (or control click) the file and choose Compress ....,  then you can email it to the person as a compressed archive.  That should preserve all the aspects of the file properly without any modifications.

  • Sending an Email with an attachment for all the Customers

    Hi friends,
    How can i send an email with an attachment to the customers email address.
    the attachment will be in doc format.
    the data which i am sending must be in a TABLE format
    withe 5 columns.
    Having an Header
    and each column with a column heading
    Please guide me.
    Thanks in Advance,
    Ganesh.

    http://www.sap-img.com/abap/sending-email-with-attachment.htm
    Sending mail to an external maild with PDF attachment.
    Creating a PDF attachment and send it via Email
    Sending E-Mail from ABAP - Version 610 and Higher - BCS Interface
    How to send a ttachment with email.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap-Sendthespooldatatoanemail+address.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/convertSpoolrequesttoPDFandsendase-mail
    Friend just have a look in the forum itself, there are many posts for ur query, you definetly get exact solution no need to wait for answers/solutions.
    All the best

  • Getting errors when sending an Email with DI

    Hi there,
    I'm trying to send an email using DI and getting this error if I use smtp_to:
    'Cannot find the full path for file <C:/Program Files/Business Objects/BusinessObjects Data Services/bin/smtp>, due to error'
    and if I use mail_to:
    'There was no default login, and the user failed to log in successfully when the login dialog box was displayed. No message was'
    Can someone help and tell me what am i doing wrong, or am I missing configurations.
    Your help is very much appreciated.
    Gsecure
    Edited by: gsecure on Mar 18, 2010 10:53 AM
    Edited by: gsecure on Mar 18, 2010 10:53 AM

    Hi everyone,
    I installed DI 3.2 which solved the problem, I think my 3.1 was not installed correctly.
    thank you.
    Edited by: gsecure on Apr 16, 2010 8:54 AM

  • How to submit an email with a header/footer in the body of the email?

    I'm trying to submit an email with a PDF attachment but needs to have a static header and footer in the the body of the email before sending it.  How would this be done and is it possible to do this? I'm new at this and not sure how to even start this.  Any help with this is greatly appreciated.  Thank you.

    You can put info into the body of the email but you are limited on formatting it. Here is a post from Stefan Cameron with sample that I think will really help you.
    http://forms.stefcameron.com/2008/08/28/submitting-form-data-by-email/

  • How to send HTML emails with embedded graphics?

    I've discovered Mail is great for sending HTML if you open it in Safari and select "Mail Contents of this Page" - - My problem is, I need to include the graphic elements as embedded images rather than hosted images.
    Is there any way to do this with Mail.app?
    Can I somehow modify my HTML image references to make this happen?
    Is there another Mac application recommended to do this?

    The best thing I've tried is Max Bulk Mailer. Do a search for it on VersionTracker. It's about $50. or so.
    If you're just looking to send one offs, you can do it with a hotmail account - just make sure you pull out the doctype tag (you should do this for any html email).

  • UTL_SMTP send HTML email with embedded image?

    Hi, I can use UTL_SMTP to send an HTML email ok, but does anyone have an example of how to include an inline embedded image in the email? Thanks!

    If you want to send the html page and have it
    reference the images and css files on your web
    site, that's pretty easy. Just create a message
    with text/html content that is your html page.
    If you want to include all the images and css files
    in your message along with the html page, you'll
    need to create a multipart/related message and
    you'll need to change all the html to reference the
    images and css files using "cid:" references.

  • Send HTML Email with Embedded Images and CSS

    Hi All,
    I have a html page. I want to send that html page(not with attachment) with all images and css. i search and try but I cant find a good solution. can any one help... plz..........
    Thank You.....

    If you want to send the html page and have it
    reference the images and css files on your web
    site, that's pretty easy. Just create a message
    with text/html content that is your html page.
    If you want to include all the images and css files
    in your message along with the html page, you'll
    need to create a multipart/related message and
    you'll need to change all the html to reference the
    images and css files using "cid:" references.

  • How to change the fact that after I send 5 emails I get a message to the effect that I cannot send more than 5 in 30 minutes?

    So, I'm busily responding to emails, etc. etc. and, as I say, after 5 emails are sent in quick succession, I get some sort of message saying I may not send more than 5 messages in 30 minutes ... !!! How can I get rid of this limitation? Because, what happens is I then save the emails I'm writing as drafts -- but I don't always remember they are sitting in the drafts folder and am horrified when I go check a few days later and there are my email replies waiting to be sent.

    Talk to your email provider.

  • What causes all my emails with embedded media to always be downloaded with the media broken or removed? How do I solve it?

    Whenever people send me emails with embedded videos or pictures, the email always comes in without the media. It will have just the empty box outline where it supposed to be with a tiny broken page icon in the top left-hand corner.
    I can't seem to find the cause and the solution and this has been happening for a few years already. Does it have anything to do with my account still being POP and not IMAP? What are the possible reasons and their solutions? Please help, thank you.

    I am not an expert in this area, but I think I might know what is going on. There is a difference between an 'embedded' picture and an 'attached' picture.
    An embedded picture has a link to the actual picture. If the link is to a site which is not accessible (such as the sender's own computer) then you will get a broken link.
    An attached picture is the actual picture file (.jpg, etc.) so you can always view it. If you check 'Display Attachments Inline', then when you scroll down through the email, the attachments will show up.
    So, bottom line: If the sender embeds a picture, it needs to link to a publicly accessible URL. Otherwise, it needs to be attached.

  • When I forward an HTML email with embedded graphics to someone, it forwards it as plain text.. this is driving me batty.. how do I forward such mails INTACT??

    I have the latest Thunderbird installed on a new 64-bit Winblows Eight netbook.. fantastic program, but one problem is driving me absolutely batty, and after using the latest Thunderbird for weeks, I simply can't figure out how to fix it..
    I'm on a lot of mfr. and other kinds of mailing lists, like eBay watch list alerts, and so on.. these are not s p a m (although I get plenty of that.. who doesn't).. but lists I WANT to be on..
    Many such emails from those mailing lists are in HTML format with embedded graphics.. I'm not talking about graphic file attachments, but embedded graphics which are coming from the senders' servers, and appear AS a graphic in the email.. sometimes such emails are one huge graphic with hardly any text.. all well and good..
    However, here's the problem.. when I want to forward such an email to a friend, Thunderbird ALWAYS formats it as plain ASCII text.. I know this because I look in the "sent mail" folder, and can see that it has turned an HTML email with embedded graphics into plain ASCII text..
    I absolutely can't figure out how to get it to forward an HTML email with embedded graphics INTACT, so the sender receives it looking the way it looks when I receive it from a mailing list, or an advertiser, or eBay, or whoever..
    Is Thunderbird capable of forwarding an HTML email with embedded graphics INTACT?.. If so, how / where do I turn on that capability?..
    If the capability to do this isn't built into the program, is there an add-on I can install that will give it that ability?..
    I am not new to computers.. but this really has me stumped.. I want to put Thunderbird on my 32-bit Vista laptop and stop using its horrible "Windoze Mail" program, which I've been using for years, and is slower than snot, and has all kinds of other problems..
    So, assuming whoever reads this FULLY understands my question, PLEASE tell me how to get Thunderbird to have the ability to forward an HTML email with embedded graphics AS-IS, so the receiver(s) I forward it to see it exactly the way I see it when I receive it.. if that ability is built in, please tell me how to turn it on.. if that ability is not built-in, please tell me what add-on I need to install to give Thunderbird this capability.. if Thunderbird absolutely can't forward an HTML email with embedded graphics at all, please also tell me that..
    A virtual box of candy and a dozen long-stemmed roses to anyone who can give me a solution that works..
    Thanks..

    Dear Mr. Toad (my all-time favorite ride at Disneyland ;-) ..
    Thanks so much for your detailed reply.. my netbook is in the bedroom, turned off.. I (so far) only use it in the evening, in the bedroom.. I've saved your response, and will try your suggestions, and let you know if they solve the problem I described. I really appreciate you taking the time to post such a detailed reply..
    I can't answer your Thunderbird "configuration" questions, because I'm in the living room, using the crap Vista laptop, on which I plan to install Thunderbird, and then take Windoze Mail out in the street and drive over it a few times.. I'll get back to you one way or the other, and let you know if your instructions solved the problem, or not..
    I don't understand why Thunderbird "out of the box", so to speak, simply doesn't forward HTML emails with embedded graphics, (like Outlook Excess, and Winblows Mail do).. without having to go through those steps. I personally HATE HTML email, but over the years, it's become more and more prevelant.. so it's a problem I must fix..
    Thanks again..
    Harv..

  • On my mac why does it take so long to send a Email with an attachment, on my mac why does it take so lone to send a Email with an attachment

    on my mac why does it take so long to send a Email with an attachment, on my mac why does it take so lone to send a Email with an attachment

    It depends on the size of the attachment and the speed of your internet connection.
    Next time you send an email with an attachment do these two things:
    In Apple Mail (I assume you are using Apple Mail), under the Window menu select Activity. Arrange the Activity window so you can see it.
    Then open the separate application located in the Utilities folder called "Activity Monitor" and arrange it so you can see it at the same time as the Activity window in Mail.
    In Activity Monitor program, select the tab labeled "Network." Watch the "Data sent/sec" portion. Then send your email, while watching the Mail Activity window and also the Activity Monitor program window Data sent/sec area.
    You should see the mail being sent with a progress bar in the Mail Activity window and also you should be able to see how many bytes/sec or KB/sec or MB/sec your internet connection is giving you in the Activity Monitor window.
    Example: my internet provider gives me about 20 Megabits per second download and 5 Megabits per second upload. To convert these to Megabytes per second (Activity Monitor shows things in bytes, not bits), simply divide by 10 (not the exact thing to do, but close enough). So I get 0.5 Megabytes per second upload speed. When I send a file that is 5 Megabytes in size, it takes about 10 seconds if I am getting the full upload bandwidth. If I am getting less than that (which sometimes happens), it will take proportionately more time. Either way, you can see what is happening with these two windows.
    If your internet provider is supposed to give you, say, 5 Megabits/sec upload (0.5 Megabytes/sec), but you see only say, 5 KB/sec (=0.005 Megabytes/sec), sent in Activity Monitor, then your emails are taking a long time because you are getting only abut 1/100 the speed you should be. You might want to check with your internet provider about that.

Maybe you are looking for

  • Issue while opening Excel attachment send through FM

    Hi All, I had program in which i am sending mail along with Excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1. Mail is going fine with data in Excel attachment. But when i try to open the Excel it gives an Info message saying that "<b>You are t

  • Performance issue on the sys.dba_audit_session

    i have the following query which is taking long time and had performance issue. SELECT TO_CHAR(current_timestamp AT TIME ZONE 'GMT', 'YYYY-MM-DD HH24:MI:SS TZD') AS curr_timestamp, COUNT(username) AS failed_count FROM sys.dba_audit_session WHERE retu

  • Can you convert a PDF to InDesign?

    I have another question: Is there any way to convert PDF files back to  InDesign without downloading a converter plug-in? It seems to make sense  that Adobe would have a tool for this function, but I haven't had any  luck in finding it. Any help woul

  • Dynamic (session) language setting not working in external ITS v6.20

    Hi everybody, We have upgraded from ITS 2.0 to 6.20 patchlevel 35.  In the service (srvc) file following parameters have been set; ~languages      tr, en ~language      tr So we want our users to log on in Turkish (tr) language, but they have to be a

  • Change PO's currency

    Hello, The PO's currency comes from the supplier one. But i want to change as the currency of the SC for some plants. Is there any possibility to do that by customizing or i have to code it? thnaks, Meriem.