Adding #FROM_ROLE TO wf_notifications.send is giving error :active autonomous transaction detected and rolled back

Hello all,
I'm using the below code to send the notication using plsql package. It works fine and sends notification if i don't use '#FROM_ROLE' and 'SENDER' attributetext in the code. If i use them, i get the error message. Please advice
    L_MESSAGE_TYPE := 'WFMAIL';
    L_MESSAGE_NAME := 'OPEN_MAIL_FYI';
    L_NID          := WF_NOTIFICATION.SEND(UPPER(P_USER_NAME),
                                           L_MESSAGE_TYPE,
                                           L_MESSAGE_NAME);
    WF_NOTIFICATION.SETATTRTEXT(L_NID, 'SUBJECT', P_SUBJECT);
    WF_NOTIFICATION.SETATTRTEXT(L_NID, 'BODY', P_TEXT_BODY);
    WF_NOTIFICATION.SETATTRTEXT(L_NID, '#FROM_ROLE', 'USERNAME1'); 
    WF_NOTIFICATION.SETATTRTEXT(L_NID, 'SENDER', 'USERNAME1');
    WF_NOTIFICATION.DENORMALIZE_NOTIFICATION(L_NID);
Thanks
KK

Hi KK,
What error you are getting when you set the attributes '#FROM_ROLE' and 'SENDER'?
when you set '#FROM_ROLE' then  Wf_Notification.Denormalize_Notification(nid) API will be called.  If the attribute is 'sender' then event 'oracle.apps.wf.notification.setattrtext wll be rasied.

Similar Messages

  • After the update before last (6.0.1 I think) Firefox crashed on resart and failed to send in the error report; I've had to roll back to V4 to use Firefox - any clues?

    The update to 6.0, 6.0.1 or 6.0.2 will not run on my system. Th einstall goes ok, the restart starts, throws up a bunch of Java incompatabilities then crashes with the apology screen offering to send in a report if I hit restart or quit. No matter how many times I hit restart, the report submission fails and Firefox stays crashed. Looking at my crash reports, the problem seems to start on or around August 18th 2011 - the crash ID below is the last generated (not found at your end obviously, as it never reached you)

    Thanks for the suggestion;
    Complete uninstall (Bookmarks saved to X-Marks), re-install, same problem (minus the imcompatible Jave bits & bobs, 'cos they weren't there to be objected to).
    So I'm back to V4 (might try hunting down a newer (pre V6) version)

  • The install wizard stops and "rolls Back" the install and just gives the attached notice of the install error...how can this be corrected?

    The install wizard stops and "rolls Back" the install and just gives the attached notice of the install error...how can this be corrected?
    The notice is inserted first and the stopping point is second.

    Da ich gar kein Englisch kann kann ich auch nicht sagen was sie mir
    geschrieben haben ich kann nur Vermuten was das sein soll es tut mir leid
    aber ich kann ihnen keine Konkreter Antwort geben alle Sprechen Englisch
    nur ich nicht mehr kann ich dazu nicht sagen
    Constantin Preda
    2015-02-12 21:45 GMT+01:00 Claudio González <[email protected]>:
        The install wizard stops and "rolls Back" the install and just gives
    the attached notice of the install error...how can this be corrected?
    created by Claudio González
    <https://forums.adobe.com/people/Claudio+Gonz%C3%A1lez> in Adobe Reader
    - View the full discussion
    <https://forums.adobe.com/message/7189357#7189357>

  • Send Idoc to SAP in sequence and roll back if the last one fails

    Hi All
    I have a scenario like this.
    System Ajore --> XI - > R/3
    Ajore is a manufacturing system
    Send material from Ajore to SAP through XI and create MATMAS idoc in SAP
    Send change number from the Ajore to SAP through XI and create ECMMAS idoc in SAP
    Send Bill of materials from the Ajore to SAP through XI and create BOMMAT idoc in SAP
    All these will should be send in the sequence MATMAS, ECMMAS, BOMMAT to SAP. How can I achieve the sequence operation through XI?
    Second challenge is when I send the BOMMAT to SAP and if it fails, then all the processed MATMAS, ECMMAS sent to SAP should be rolled back.
    Is it possible to achieve using XI?
    The reqmt is very urgent. Any help is really appreciated.
    Thanks
    Ricky

    Hi Satish,
    Thanks for the reply. Do I need to do event driven message processsing in XI for this? The other way is to schedule the RBDAPP01 in R/3 to post idocs in sequence based on the message type and Partner number
    Does this makes sense?
    And any idea bout the second question for roll back?
    Thanks

  • It will not let me install Itunes 1.6.1 on my Windows 7 OS and keeps coming with an error and rolls back, what can i do?

    Everytime i tried to update my i tunes to 1.6.1 it wouldn't let me and came up with this error.
    I'd hit OK then it would roll back and start again and end with this error
    Anything i can do?

    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? Are they also 80070002, or some other number? (If they're another number, what number are you getting?)

  • Can no longer send mail - strange errors/activity

    I'm hoping a guru can help me. This is driving me insane. My mail has worked perfectly for years. Over the past 2 days, it can no longer send mail. I can recieve, but not send.
    It first began with error messages saying that it couldn't use Port 25. My ISP doesn't block this port, so I tried using four other mail servers from other email accounts. Again, all give the same error. Now when I try to send a message, they just sit in my out box. When I try to resend, it does nothing. The activity monitor quickly states "Copying message to outbox". That's it.
    I'm at a loss. Any help is really appreciated.

    Ignore this message, I JUST WORKED IT OUT.
    It looks like there is another unsecure wireless network in our building and for some reason my Powerbook defaulted to using that, rather than my own wireless account.
    So with this other connection I could surf/recieve but I couldn't send out.
    The variables never cease to amaze me.

  • Uploading the document giving error in CV01n transaction

    Hi All,
       I created one content repository in ECC 5.0, when i was created that time it was giving the error http 401..etc. I solved it by entering the Content server Administrator username and password.
    After creating the content repository, i am trying to upload the document using the transztion cv01n in xls format.It is giving the following error Error while checking in and storing: C:\Documents and Settings\Sridhar\Desktop\DailyChecking.xls Message no. 26253..
    Is there any wrong in that configuration or what?
    Can i have solution for this problem?  Please let me know...
    Thanks & Regards,
    Sridhar M.

    Hi Sridhar
    The path in dc20 C://abc is the path where the temporary files wud be stored..
    For example, when u double click a checked in document, it will open the file and a temporary file would be created in the path mentioned in dc20 against data carrier PC..
    The path mentioned is the area where these temporary file should be stored while u process an original application file..
    If u dont want any temporary files to be stored in ur desktop, simply do not put anything in the path..
    Regards
    Aby
    Please award points if u find the answer useful

  • Db- open is giving error no 22 with C and 4.4.20 version

    Here is my simple code which create and tyr to open a database. i am using vc++ 2005 version. and the error is "Invalid arguments".Could any one suggest possiblities of this kind of error.
    #include <sys/types.h>
    #include <stdio.h>
    #include <db.h>
    #include<memory.h>
    #include<string.h>
    #define     DATABASE "access.db"
    int
    main()
         DB *dbp;
         DB_TXN *one = NULL;
         DBT key, data;
         int ret, t_ret;
         u_int32_t open_flags;
         if ((ret = db_create(&dbp, NULL,0)) != 0)
              fprintf(stderr, "db_create: %s\n", db_strerror(ret));
              return (1);
         open_flags = DB_CREATE;
         ret = dbp->open
              (dbp,NULL,DATABASE,NULL,DB_BTREE,open_flags,0);
         if (ret != 0)
         //dbp->err(dbp, ret, "%s", "access.db");
              fprintf(stderr, "db_open: %s\n", db_strerror(ret));
              if ((t_ret = dbp->close(dbp, 0)) != 0 && ret == 0664)
              ret = t_ret;
         return(ret);
    Thanks in advance.

    Hello,
    Are verbose error messages turned on? If so what verbose
    messages are you receiving? If not please turn them on
    see what verbose messages are produced. Those messages
    should point you in the direction of the problem. In
    order to turn on verbose error message configue the Berkeley
    DB error stream as:
    DbEnv::set_errfile http://www.oracle.com/technology/documentation/berkeley-db/db/api_cxx/env_set_errfile.html
    Or if you don't have a database environment handle, use:
    Db::set_errfile http://www.oracle.com/technology/documentation/berkeley-db/db/api_cxx/db_set_errfile.html
    Thanks,
    Sandra

  • Unable to add File Server Resource Manager Tools on Windows Server 2012 - Errors on restart and roll back install

    Unable to install Windows Server 2012 Feature -  [Tools] File Server Resource Manager Tools.
    Installs, however when I restart the server error messages appears saying feature unable to install, windows reverting changes.
    In the Setup event logs have the following information message "Update FSRM-Infrastructure of package FSRM-All failed to be turned on. Status: 0x800f0922"
    Does anyone have any idea's on why this Feature can not be installed ??
    Scott

    Hi Shaun
    Tried both of your suggestions, however neither strategy worked.
    Strategy 1
    Tried installing via powershell - "install-windowsfeature -name fs-resource-manager -includemanagementtools"   
    Feature un-installed itself during the restart.
    Attempted to use the command "DISM /online /remove-feature /featurename:FSRM-Infrastructure-Services".  However
    this did work because one the Service was'nt installed or two because there was no command option for "/remove-feature"
    PACKAGE SERVICING COMMANDS:
      /Add-Package            - Adds packages to the image.
      /Remove-Package         - Removes packages from the image.
      /Enable-Feature         - Enables a specific feature in the image.
      /Disable-Feature        - Disables a specific feature in the image.
      /Get-Packages           - Displays information about all packages in the image.
      /Get-PackageInfo        - Displays information about a specific package.
      /Get-Features           - Displays information about all features in a package.
      /Get-FeatureInfo        - Displays information about a specific feature.
      /Cleanup-Image          - Performs cleanup and recovery operations on the image.
    Strategy 2
    Tried installing via powershell, using the following command DISM
    /online /enable-feature /featurename:FSRM-Infrastructure-Services, however got the same result, the install backed out during the restart.
    All up back to where I started?

  • Problem: ipod server could not be contacted, i went to control panel, lan settings, ck'd auto detect and went back to i-tune to update and got the same error message, any help is appreciated

    Error message: Ipod software update server could not be contacted. I went to control panel, lan settings, clk'd auto detect settings and ok. When i went back to i tunes and clk's update, i got the same error. Any help is appreciated.
    Rand221

    See the previous posts on the right side of this page under the heading "More Like This" that have you same error message.

  • Giving error

    GO
    SET
    ANSI_NULLS
    ON
    GO
    SET
    QUOTED_IDENTIFIER
    ON
    GO
    ALTER
      PROCEDURE [dbo].[SearchSubsubCategory]
    @Category1
    nvarchar(50),
    @SubCategory1
    nvarchar(50),
    @SubSubCategory1
    nvarchar(50),
    @Sort
    nvarchar(100),
    @SortDirection
    nvarchar(100)
    AS
    BEGIN
    SET
    NOCOUNT
    ON;
    DECLARE
    @strSQL nvarchar(3000)
    set
    @strSQL =
    'SELECT a.Id,dbo.GetCategoryName(a.Category) as Category,dbo.GetSubCategoryName(a.SubCategory) as SubCategory,dbo.GetSubSubCategoryName(a.SubSubCategory) as SubSubCategory,a.Product,a.Description,a.Thumbnail,a.Image1,a.Image2,a.Image3,a.Image4,a.Image5,a.Image6,a.Image7,a.Image8,a.Publish,a.New 
    from tbl_product a inner join tbl_category b on a.Category=b.id inner join tbl_subcategory c on a.SubCategory=c.id inner join tbl_sub_subcategory d on a.SubSubCategory=d.id WHERE a.Publish = 1 and b.CategoryName like '%'
    + @Category1 + '%' and c.SubCategoryName
    like '%' + @SubCategory1 + '%'
    and d.SubSubCategory like '%' + @SubSubCategory1
    + '%'  ORDER BY ' 
    + @Sort
    +
    + @SortDirection
    EXECUTE
    sp_executesql 
    @strSQL
    END
    giving error
    The data types varchar and varchar are incompatible in the modulo operator.
    Sms

    You're just missing few single quotes
    make it like below and it will work
    set
    @strSQL = 'SELECT a.Id,dbo.GetCategoryName(a.Category) as Category,dbo.GetSubCategoryName(a.SubCategory) as SubCategory,dbo.GetSubSubCategoryName(a.SubSubCategory) as SubSubCategory,a.Product,a.Description,a.Thumbnail,a.Image1,a.Image2,a.Image3,a.Image4,a.Image5,a.Image6,a.Image7,a.Image8,a.Publish,a.New from tbl_product a inner join tbl_category b on a.Category=b.id inner join tbl_subcategory c on a.SubCategory=c.id inner join tbl_sub_subcategory d on a.SubSubCategory=d.id WHERE a.Publish = 1 and b.CategoryName like ''%'' + @Category1 + ''%'' and c.SubCategoryName like ''%'' + @SubCategory1 + ''%'' and d.SubSubCategory like ''%'' + @SubSubCategory1 + ''%'' ORDER BY ' + @Sort + ' ' + @SortDirection
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Errors in Call transaction and Session method.

    Hi all
    Please explain me in detail with example how to handle errors in call transaction method and session method.
    Thanks in advance
    Manu.

    Hi,
    In Session Method Datawill be stored in session.In that session u can find error recods.
    In CALL Transation useing 'FORMAT_MESSAGE' Function Module u can catch the errors.
    ex:
    LOOP AT it_messtab.
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          id     = it_messtab-msgid
          lang   = it_messtab-msgspra
          no     = it_messtab-msgnr
          v1     = it_messtab-msgv1
          v2     = it_messtab-msgv2
        IMPORTING
        msg    =  g_msg
      EXCEPTIONS
          OTHERS = 0.
      IF it_messtab-msgtyp = 'S'.
        it_sucess-sucess_rec = g_msg.
        it_sucess-lifnr = it_header-lifnr." Based on your field
        it_sucess-tabix = v_lines.
        APPEND it_sucess.
      ELSEIF it_messtab-msgtyp = 'E'.
        it_error-error_rec = g_msg.
        it_error-lifnr = it_header-lifnr.
        it_error-tabix = v_lines.
        APPEND it_error.
      ELSE.
        it_info-info_rec = g_msg.
        it_info-lifnr    = it_header-lifnr.
        it_info-tabix    = v_lines.
        APPEND it_info.
      ENDIF.
    ENDLOOP.
      LOOP AT IT_BDC_MESSAGES.
        IF IT_BDC_MESSAGES-msgtyp = 'E'.
       SELECT single  * FROM t100  WHERE
                                    sprsl = it_BDC_MESSAGES-msgspra
                                    AND   arbgb = IT_BDC_MESSAGES-msgid
                                    AND   msgnr = IT_BDC_MESSAGES-msgnr.
          IF sy-subrc = 0.
            l_mstring = t100-text.
            IF l_mstring CS '&1'.
              REPLACE '&1' WITH IT_BDC_MESSAGES-msgv1 INTO l_mstring.
              REPLACE '&2' WITH IT_BDC_MESSAGES-msgv2 INTO l_mstring.
              REPLACE '&3' WITH IT_BDC_MESSAGES-msgv3 INTO l_mstring.
              REPLACE '&4' WITH IT_BDC_MESSAGES-msgv4 INTO l_mstring.
            ELSE.
              REPLACE '&' WITH IT_BDC_MESSAGES-msgv1 INTO l_mstring.
              REPLACE '&' WITH IT_BDC_MESSAGES-msgv2 INTO l_mstring.
              REPLACE '&' WITH IT_BDC_MESSAGES-msgv3 INTO l_mstring.
              REPLACE '&' WITH IT_BDC_MESSAGES-msgv4 INTO l_mstring.
            ENDIF.
            CONDENSE l_mstring.
            it_mess-msgtyp = IT_BDC_MESSAGES-msgtyp.
            it_mess-lms = l_mstring.
            it_mess-msgv1 = IT_BDC_MESSAGES-msgv1.
            APPEND it_mess.
          ELSE.
            it_mess-msgtyp = IT_BDC_MESSAGES-msgtyp.
            it_mess-lms = l_mstring.
            it_mess-msgv1 = IT_BDC_MESSAGES-msgv1.
            APPEND it_mess.
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDFORM.
    Reward if useful.
    Regards,
    Narasimha

  • WF_NOTIFICATION.send

    Hi All,
    I am trying to use WF_NOTIFICATION.send for the 1st time. The requirement is that I have following piece of code in my pl/sql package which is called form the function activity of the workflow. The following code is inside the loop of the supplier list. So I want to send the notification to each of the supplier picked up in the loop.
    If it not giving me any error in pl/sql or workflow, with debug I have checked it it getting correct value for l_tp_contact but still when I log-in as the supplier (user) in the worklist there is no message to that supplier.
    =====
    l_notification_id := WF_NOTIFICATION.send (role      => l_tp_contact,
                   context     => p_itemtype||':'||p_itemkey||':'||to_char(p_actid),
                                  msg_type      => 'PONAWARD',
                                  msg_name      => l_message_name);
    ===
    Can some one please help.
    Thanks!

    I am guessing, because I haven't done this with PL/SQL code before, but when you say you are looping through suppliers, is this a loop in your PL/SQL or a loop in the workflow? I have had problems before with notifications not being generated from inside a workflow loop because I had my On Revisit set incorrectly (Reset instead of Loop) on the notification step.
    Also, is the notification a response required notification or an FYI notification? Where the notification is an FYI, the status of the notification can be updated when generating the email, so querying open notifications on the supplier's worklist could be missing it where the email has been generated.
    A good check for both of these is to see if you can find anything in the WF_NOTIFICATIONS table for these notifications?
    theFurryOne

  • Giving error message when saving the Query

    Hello,
    I have added a new calculated key figure to the structure in a Query but when I try to save the Query it is giving error message is below.
    Error Message:
    u201CThis internal error is an intended termination resulting from a program state that is not permitted.
    Procedure
    Analyze the situation and inform SAP.
    If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
    For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572u201D.
    Could any one please suggest me how can I over come with this problem.
    Thanks
    Prathap.

    Hi Prathap,
    There is some problem in the definition of the Query.
    Please click on the check button before saving the query, it gives where the problem exists in it.
    Hope it helps.
    Veeerendra.

  • Time to time its giving error in the FTP connection

    Hi Gurus,
    Im doing File to File Interface. Im using FTP for File transfer and the message protocol is 'File'.  Im using the connection security as 'FTPS(FTP Using SSL/TLS) for control and data connection' and set the default command order.
        I have uploaded the required certificate in the FTP server and the XI server also. I can view the certificate in the keystore of visual Administrator. Its working fine. But the problem is time to time its giveing this error "Error occurred while connecting to the FTP server "170.135.128.149:20021": iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier"
    Can anyone please help to resolve this issue. i need to fix it as soon as possible.
    Regards,
    Rama

    Hi All,
      I m facing one peculiar problem with FTP server. I have desinged one R3 to FTP interface. I m trying to connect to FTP with secure SSL connection. For that we uploaded the certificate in the FTP as well as in the Visual administartor in the XI box. I didnt create any SSL socket for this. Our basis team told like we dont need this SSL socket stuff because here we are using FTP as a client. So just they uploaded the certificate in the trusted CA of Visual administartor. Our certificate is obtained from verisign. So the CN name in the certificate is Verisign. I didnt find any thing in the certificate other then this. In our communication channel we gave the hostname instead of IP address.  But here my problem is, When i send the file to FTP its giving error in the first attempt. After that the message retiried itslef, the file has been sent successfull in the retry process. Why it is always fails in the first attempt.
    Can anyone please help me to resolve this. I need to be fix today itself.
    Regards,
    Rama

Maybe you are looking for

  • Using CDATA when creating an xml message

    I'm currently trying to create an XML message in one of my tags I'm trying to put the following string "&#13; ". However when I create the xml document I receive the following string &#13; . I think the conversion is happening when I call setStringNo

  • Too much surrounding space in mx:Text

    Hi, I have the following code <mx:HBox xmlns:mx=" http://www.adobe.com/2006/mxml" width="1000" height="600" backgroundColor="#FF9933"> <mx:Style source="Assets/Styles.css" /> <mx:VBox width="80%" height="100%"> <mx:Text styleName="Text3" width="100%"

  • Catt in ECC 6.0 version

    Hi all, When I am trying to create  CATT in scat tcode in ECC 6.0 its giving error message realeases higher than 6.0 are not permitted. Can someone tell me how to create catt in ECC 6.0 version. Regards, Sudha.

  • [SOLVED]Yaourt not requiring Sudo

    I just installed in yaourt through the archlinuxfr repository method, and I realized that yaourt -Syua updates both the aur and non-aur packages -- without requiring root privileges.  I think that that is potentially harmful.  Is there something that

  • Converting an Image into a Button

    Hello all, I'm a very new user to Adobe Flash, and am trying to figure out some of the small things. I was wondering if anyone could help me out with how to convert an image into a button (with a URL). Thank you! Dave