Action is executing multiple times

Hi Experts,
I am using an action for a service transaction in which a method is called APPROVE_RFC_VIA_WF - the method triggers a workflow, but the action runs multiple (6) times, 6 workflow items are created and 6 emails are triggered likewise.
I restricted the action to only one executable/successful action and it works ! Only 1 email and 1 workflow item is created, but then the workflow item is not executed !
Please I need help on this, thnx.
Regards.

Another action definition was restricted to execute 5 times which was somehow effecting the workflow action definition
Adjustments were made to both definitions so that both would give correct results.
Regards.

Similar Messages

  • Action gets executed multiple times

    Hi,
    i have a strange problem in my jsf application.
    I have an action in my bean, let's say
    public String testThis(){
    //my business is logic here
    if(blahblah){
    return null;
    }else
    return "oke";
    Now, the problem is, when the action is fired, and it returns null, the next time the action get's fired, it gets executed 2 tot 4 times.
    Somebody got an explenation or somewhat the same behaviour?
    regards,
    J.

    hi,
    i am a newbie in JSF, but i had faced a similar problem. posting this reply as it might help u.
    if u r referencing properties of some other page also then it might happen.
    what happened with me was -
    let my application has 2 files A.jsp and B.jsp.
    In my A.jsp file i was accessing "B.property"
    this happened by mistake. when i corrected it to A.property (i had property with same name in both files) it worked perfectly.
    so u can checkout this thing with ur application.
    thanks,
    amol chaudhari.

  • Web Service executing multiple times

    We are noticing an ongoing problem with web services both consumed in SAP as well as web services published in SAP and consumed via .NET applications.  In both cases, we are occasionally seeing examples of a single web service method calls executing multiple times.  For example, one of our methods in our SAP generated web services inserts records into a custom Z table.  We are noticing that for a single invocation of the web service, data records are appearing multiple times in the custom table.  We have placed code inside of the function in SAP to catch these multiple executions, but the code does not recognize the duplicates because most likely, the commit from the previous execution has not yet occurred.  We have time stamped the inserts into the table and can see that they do not have the same time.  Our web services are being created in SE80.  My guess is this is some sort of caching issue.  Has anyone run into a similar problem?  We are using NetWeaver 7.0 and SAP ECC 6.0.
    Edited by: Joseph Sciacca on Sep 9, 2008 4:10 PM
    Edited by: Joseph Sciacca on Sep 9, 2008 7:34 PM

    Hi Developers,
    I have the same question, is it possible to have multiple outgoing parameters?
    When not, does SAP Netweaver knows a IN-OUT parameter? Because I found on the internet that it is possible to have a IN-OUT parameter. But that was with the BEA Weblogic 8.x.
    When not, is then the only solution to return a object? With in this object all the parameters you want.
    Or otherwise is there a other workaround?
    Thanks in advance,
    Marinus Geuze

  • Process request method executing multiple times issue

    Hi ALL,
    In my controller code , process request method is executing multiple times and inserting multiple data into the table, can any body help me how to resolve this issue.
    I have the below code in my process request:
    OAApplicationModule am = (OAApplicationModule) pageContext.getApplicationModule(webBean);
         am.invokeMethod("InsertRecord",null);
         OAMessageLovInputBean oalovinputbean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("ccustatus") ;
         oalovinputbean.setValue(pageContext,"INPROGRESS");
         String userName = pageContext.getUserName();
          System.out.println("User NAme is :" + userName);
          OAMessageTextInputBean pUserId = (OAMessageTextInputBean)webBean.findChildRecursive("item32");
          pUserId.setValue(pageContext,userName);
          OAMessageTextInputBean pchangedby =  (OAMessageTextInputBean)webBean.findChildRecursive("item34");
          pchangedby.setValue(pageContext,userName);
          if((("on").equals(pageContext.getParameter("rrchkbox"))))
                  String whereclause1=(String)pageContext.getTransactionValue("whereclause");
                  String workordnum=(String)pageContext.getTransactionValue("workordnum");
                  String rrnum =(String)pageContext.getTransactionValue("rrnum");
                  String ponum =(String)pageContext.getTransactionValue("ponum");
                  System.out.println("whereclause test1"+whereclause1);
                  String status=pageContext.getParameter("ccustatus");
                  System.out.println("DEBENDRA LINE STATUS:" + status);
                  Serializable param[] = {whereclause1,workordnum,rrnum,ponum};        
                           // am.invokeMethod("getSearchData1",param);
                           // am.invokeMethod("checkSelectedrow",param);       
                 Serializable vcnt =  am.invokeMethod("processPOData",param);  
    Below code written in AM:
    public void InsertRecord()
            XXDPECONTAINERVOImpl vo = getXXDPECONTAINERVO1();
            vo.setMaxFetchSize(0);
            XXDPECONTAINERVORowImpl row = (XXDPECONTAINERVORowImpl)vo.createRow();
            oracle.jbo.domain.Number empNum = (oracle.jbo.domain.Number)getOADBTransaction().getSequenceValue("XXDPE_CONTAIN_SEQ");
            row.setContainerizationId(empNum);
            vo.insertRow(row);
            row.setNewRowState(row.STATUS_INITIALIZED);
    Please help me out.

    hi,
    PR() will be called whenever your page will load, so the number of times you will load your page all the time your PR will be called and it will call the AM method.
    otherwise put some condition and call the insert method from your PR.
    Regards
    Mahesh

  • ALV events for data_change  executing multiple times

    Hello Experts,
    I am using the event "data_changed" of cl_gui_alv_grid and its getting triggred multiple times based on
    no. of rows in my ALV grid output.
    For ex: if i have 5 rows and if i input a field in any cell in a new row, in data_changed event is triggered 2 times.
    The  LOOP AT er_data_changed->mt_mod_cells INTO ls_modified is executing 6 times as in above example
    even though is having only 1 entry.
    Can some one pls help me with this?
    Also i see the  toolbar event is often getting excuted multiples no of times making the application slow.
    Please suggest.
    Thanks
    Dan

    Dan,
    Maybe you've placed or doing something wrong, take this report as a pattern "BCALV_EDIT_03".
    Best regards,
    Alexandre

  • For each loop container executing multiple times....

    Hi,
    We are using SQL SERVER version 2005.
    I am having a For each loop container and inside that container there are multiple Sequence containers and inside each sequence containers there are Execute SQL Tasks (which are just stored procedures).
    Now, when i run sequence containers individually they are running perfectly fine.
    But when I run the whole For each loop container, it is just running and running multiple times without ending the process.
    I really couldnt figure out what would be the issue?
    Any ideas????
    Thanks....

    Hi grk666,
    To check whether the values stored in the object type variable are correct, you can disable all the Sequence Containers within the Foreach Loop Container, and add a Script Task with the following code to display the string type variable value (supposing
    you use the string type variable StrVar to store the value retrieved from the object variable):
    MsgBox(Dts.Variables(“StrVar”).Value.ToString())
    It would be helpful if you could post a screenshot to show the package execution at runtime in BIDS.
    Regards,
    Mike Yin
    TechNet Community Support

  • Query executing multiple times

    All,
    This question has been come up quite often in the OTN forum and i have not managed to get the answer. The issue is when i enable the logs i can see query getting fired multiple times :
    <TracingViewObjectSqlQueryExecution> <logQueryStatementAndBindParameters> ----[Exec query for VO=Kpi, RS=<Default>]----
    <TracingViewObjectSqlQueryExecution> <logQueryStatementAndBindParameters> ----[Exec COUNT query for VO=Kpi]----
    <TracingViewObjectSqlQueryExecution> <logQueryStatementAndBindParameters> VODef =com.xxx.model.uiView.KpiVO
    <TracingViewObjectSqlQueryExecution> <logQueryStatementAndBindParameters> SELECT
    kpi.kpi,
    kpi.kpi_desc,
    kpi.target,
    kpi_pkg.get_kpi_main (kpi.kpi, kpi.sale_type, :bSelectedSalesExecutiveId, :bSelectedBranchId ,:bOperatingUnitId, :bUserRole, :bPersonId, :bKpiRefresh) achieved,
    kpi.percentage,
    kpi.sale_type
    FROM    tableName kpi   
    WHERE  kpi.sale_type = NVL (:bSaleType, kpi.sale_type)
    ORDER BY tag
    <TracingViewObjectSqlQueryExecution> <logQueryStatementAndBindParameters> BindVars:(bUserRole=SE,bOperatingUnitId=81,bPersonId=31458,bSaleType=RETAIL,bSelectedBranchId=224,bSelectedSalesExecutiveId=31458,bKpiRefresh=Y)
    <TracingViewObjectSqlQueryExecution> <getQueryHitCount> ***** Query Hit Count = 6 *****
    <TracingViewObjectSqlQueryExecution> <logQueryStatementAndBindParameters> VODef =com.xxx.model.uiView.KpiVO
    <TracingViewObjectSqlQueryExecution> <logQueryStatementAndBindParameters> SELECT
    kpi.kpi,
    kpi.kpi_desc,
    kpi.target,
    kpi_pkg.get_kpi_main (kpi.kpi, kpi.sale_type, :bSelectedSalesExecutiveId, :bSelectedBranchId ,:bOperatingUnitId, :bUserRole, :bPersonId, :bKpiRefresh) achieved,
    kpi.percentage,
    kpi.sale_type
    FROM    tableName kpi   
    WHERE  kpi.sale_type = NVL (:bSaleType, kpi.sale_type)
    ORDER BY tag
    <TracingViewObjectSqlQueryExecution> <logQueryStatementAndBindParameters> BindVars:(bUserRole=SE,bOperatingUnitId=81,bPersonId=31458,bSaleType=RETAIL,bSelectedBranchId=224,bSelectedSalesExecutiveId=31458,bKpiRefresh=Y)This is one such case. These repetitive nature of the queries getting executed is making my application slow. On the logs i can see the first time query getting executed then waiting for it to finish then the same for the second time. Can any one give some inputs on this ?
    thnks
    Jdev 11.1.1.5

    thnks Frank for your reply.
    Ideally this query is supposed to run when the page is loaded however it has a complex calculation which takes 28 secs to complete. In order to load the page fast we dragged and dropped the collection as a table and added a button which executes the query. So the query gets executed on page load with a condition set as false so that no data is fetched - to speed the page load. However when we press the Refresh button the query gets re executed but as you can see 2 times. I can see the same effect on a nos of tables.

  • Question of button_click of ALV executes multiple times

    Hi Experts,
    I have a main screen 4000 including subscreen 2000 & 3000.
    subscreen 2000 has a text input field followed with a button.
    subscreen 3000 is an alv with a column as button.
    subscreen 1111 is the screen of editor.
    the purpose of this program is changing item texts of sales orders. subscreen 2000 is the input for item texts; subscreen 3000 consists all sales order items with a column as button clicking which the item texts of the particular item pops up in a screen 1111.
    my expectation is after input item texts in subscreen 2000, then click the execute icon in main screen 4000, item texts are updated. by clicking button in ALV of subscreen 3000, new item texts pops up.
    my problem is strange. one execute in main screen 4000, i click the button in ALV of subscreen 3000, the popped up screen 1111 occurs twice, twice execution in main screen 4000, after clicking the button in ALV of subscreen 3000, the popped up screen 1111 occurs three times...
    debugging in to the program, after close the screen 1111, program jumps into the event handler of screen 3000. i'm curious that i only clicked the button in 3000 once, why program goes to the event handler more than once?

    sorry for my fault.
    the problem is caused by the PBO of ALV screen 3000.
    the regist of event should be in the IF-ENDIF, else, the event will be registered multiple times. because each time 'execute' in screen 4000, 3000 is refreshed, so once 3000 is refreshed, PBO of 3000 is executed.
    IF g_container_3000 IS INITIAL.
        CREATE OBJECT g_container_3000
          EXPORTING
            container_name = 'CONTAINER_3000'.
        CREATE OBJECT g_grid_3000
          EXPORTING
            i_parent = g_container_3000.
        PERFORM frm_build_fieldcat TABLES gt_fieldcat_3000.
        CREATE OBJECT ref_event_handler_3000.
        SET HANDLER ref_event_handler_3000->hdl_button_click FOR g_grid_3000.
      ENDIF.
    Edited by: legend li on Aug 12, 2009 4:37 PM
    Edited by: legend li on Aug 12, 2009 4:39 PM

  • EO entity level validations being executed multiple times

    Hi,
    I'm using JDev 10.1.3.4, BC, JSF
    I have defined multiple entity level method validators in my entity object. On commit I get the desired results except for the fact that each of my method validators runs multiple times when they should only run once. So I end up with twice the method validator messages that I should. And if I put any additional messaging in in the validators themselves I end up with 10 times the desired messages.
    What are some of the reasons that would cause this looping through the validators. I assume I have done something to cause this but can not figure out what it is. Any ideas on what I should look for?
    Note : Also using JHeadstart but I don't think it should be a factor at the entity level.
    Thanks,
    Jim
    Edited by: 170412 on May 5, 2009 4:11 PM

    Hi,
    1) Set the Foreign key using setAttribute Methods ? When u create a VO based on Multiple EO's, there should be some relationship between those 8 EO's like Primary key & Foregin key. And when u perform Commit on this all the value from ur beans will get saved to the database. But the Foreign u need to set independently using setAttribute method becoz it wont get saved by its own.
    2) If i'm doing the validations at EO level, those setters and getters will be called before the Create(), Update() and Delete()
    methods in the EOImpl class. Is that true?Yes, you are right it will get called for create and update operation but not for Delete.
    Regards,
    Gyan

  • Error file in cferror gets executed multiple times

    The error cfm page included in <cferror> tag in Application.cfm gets called multiple times, so email notification is sent more than once. Any thoughts how this can be handled?

    Could we see the code of the tag? In any case, does it help when you place <cfabort> at the end of the error page?

  • VL10BATCH executes multiple times

    Hi,
    We have scheduled a batch job to run everyday night for creation of deliveries. The job runs and creates deliveries and gives error logs which I can see in V_SA. So far good.
    Has any one done parallel processing using the parallel generator concept in this job? I know the setting is there in the User role tab but  I am curious to know if someone had done this got a good result. We are using parallel processing in other programs as well so the configuration setting is available.
    Regards,
    Vijay V

    Vijay,
    Yes, we have used this with good result. 
    Like anything in business, don't do it unless you have a sound business reason.  The fact that a functionality is available is not justification for using it.  For instance, if your delivery due list currently executes to your satisfaction, there is no reason to change it.  If your current job cannot complete within the required time frame, you might benefit from parallel processing.
    Drawbacks and problems are detailed in https://service.sap.com/sap/support/notes/399068 and related.  If you have never done this before, you will need Basis assistance to implement.
    Best Regards,
    DB49

  • CommandButton action method invoked multiple times in standalone OC4J

    Hi,
    We've developed an application in JDeveloper 10.1.3.3.0 (ADF Business Components version 10.1.3.41.57). In one page we have a commandButton with an action method:
    <af:commandButton action="#{MyBean.myActionMethod}"
    blocking="false"
    textAndAccessKey="#{nls['MY_LABEL']}"
    id="myButtonId" >
    <f:actionListener type="oracle.jheadstart.controller.jsf.listener.ResetBreadcrumbStackActionListener"/>
    </af:commandButton>
    This method is defined in a managed bean:
    public String myActionMethod() {
    /* some code */
    return "indexPage";
    There is a navigation-rule for outcome "indexPage". When we run our application in the JDeveloper embedded OC4J instance and click on the commandButton, the action method is invoked once and then the .jspx in the navigation-rule is navigated to.
    We deployed our application to a standalone OC4J instance. Both embedded and standalone OC4J have version: Oracle Containers for J2EE 10g (10.1.3.3.0) (build 070610.1800.23513)
    When we run our application in the standalone OC4J and click on the commandButton, the action method is repeatedly invoked in a seemingly infinite loop.
    We'd appreciate it if someone could shed some light on the matter. Please note that we cannot use <redirect /> in our navigation-rule for "indexPage" because in production we have an Oracle webcache server upstream of our OC4J. Users can only submit HTTPS requests to the webcache, which in turn forwards these requests as HTTP requests.
    Kind regards,
    Ibrahim

    Dear All,
    We'd really appreciate it if somebody would suggest some possible causes even if these might seem fare-fetched. Perhaps compare certain .jar files or something to that effect.
    Anything ????
    Thanks and regards,
    Ibrahim

  • H:commandLink and an Action being called multiple times.

    Hi everyone. I'm more or less relatively new in terms of JSF, though I've had to do a lot of "catching up" recently.
    I've been reading that with managed-beans, the getters/setters are not gaurenteed to be called once. http://www.jsf-faq.com/faqs/faces-misc.html#106
    My question is, are there any reasons why an action method would get called twice? An example of my jsp page.
    <h:commandLink action="#{exploreCaseAction.exploreCase}" >                    
         <h:outputText value="#{case.caseNumber}"/>
         <f:param name="caseId" value="#{case.caseId}"/>
    </h:commandLink>My faces-config
    <managed-bean>
       <managed-bean-name>exploreCaseAction</managed-bean-name>
       <managed-bean-class>com.unyric.cias.cm.web.action.ExploreCaseAction</managed-bean-class>
       managed-bean-scope>request</managed-bean-scope>
       <managed-property>
          <property-name>caseTreeHelper</property-name>
             <value>#{caseTreeHelper}</value>
       </managed-property>
       <managed-property>
          <property-name>caseId</property-name>
             <value>#{param.caseId}</value>
       </managed-property>     
       <managed-property>
          <property-name>sessionManager</property-name>
             <value>#{sessionManager}</value>
       </managed-property>               
    </managed-bean>When I click on one of the links and set a breakpoint, it comes up twice. Here's the crazy part. if I use <af:commandLink> then it only runs once.
    Personally I'd rather not use oracles components (I know it got donated and is/will be Trinidad).
    Anyone with any ideas?

    Would you be willing to try the RI (1.1_02) [1] to see if you have the same problem?
    [1] https://javaserverfaces.dev.java.net/servlets/ProjectDocumentList?folderID=5225&expandFolder=5225&folderID=0

  • Matlab script of labview keeps executing multiple times,

    i have some code for serial communication in matlab , i want to use it in labview for easier and better gui design. for that i have used matlab script node in labview. it seems that labview keep executing the matlab script but i want labview to execute it only once.is there any way to do it?
    Solved!
    Go to Solution.

    i am attaching a vi file. this vi sends 'h' to the com1 continuously but i waant it to send only once.
    Attachments:
    forum.vi ‏7 KB

  • h:commandButton executing multiple times

    I have a simple command button that gets its "action" from a method in a bean. However, the method in the bean sometimes takes a few seconds to finish before it returns the "action". In those few seconds, a user can press the enter key or the command button and it will call the same method with the same values being set...therefore, I get duplicate records in a file.
    Is there a clean and easy way to only allow a user to click/press the command button ONCE on a single page?
    Thanks...

    There is another thread about the same subject with some suggestions:
    http://forum.java.sun.com/thread.jspa?forumID=427&threadID=665472
    Personally, I like to disable the button once it is clicked in Javascript on the browser. Then you have to deal with browser with Javascript disabled or not present. There are suggestion to implement that on the server side as well in the thread.

Maybe you are looking for

  • How do I transfer content from DVR to Macbook Pro via Firewire?

    I need help. I want to transfer my recorded shows off of my Comcast Motorolo DVR to my Macbook Pro, Version 10.9.1. I've done some youtube searches and the ones that I find say I need AVCVideocapand that I can get it from downloading Firewire SDK 2.6

  • Instead of getting PDF got XML output Bi publisher report

    Hi , While i run the concurrent request i got the below : Executing request completion options... Output file size: 335 ------------- 1) PUBLISH ------------- Beginning post-processing of request 3715769 on node CORPT228V at 14-SEP-2012 07:50:11. Pos

  • Hp Laser Jet P2015 Intermittent

    I have printer Hp Laser Jet P2015. It's consider new for me. I have been being used it for few months. But now, after print 2 - 3 times, it can't print it any more. I have to switch it off and on it again. Again the same issue happened. It means some

  • Photoshop elements 7 urgent help

    http://help please;i have adobe photoshop elements 7 and been trying to add an fx to a picture,when i press apply i keep getting an error message saying the command paste is not currently available. if i press continue i get lots more error messages

  • Java.lang.NoSuchMethodError: weblogic.rmi.extensions.WRMIOutputStream

    Hi, I'm trying to run examples.jdbc.datasource.simplesql with Weblogic 5.1sp8, but am hitting this problem when it executes: An exception was caught. javax.naming.NamingException [Root exception is weblogic.rmi.ServerError: A Rem oteException occurre