Iterators are executing twice

Hi All
I have noticed the iterators used on page fragments are being called twice once after loading the fragment and second time while unloading the fragment (i.e., navigating to other fragments), because of this the services are called twice, but we do not want the iterators executed while leaving the fragment.
Iam using Jdev116
Regards
vidya

Hi,
You may want to set the iterator's refreshCondition to #{adfFacesContext.initialRender}.
Check out this blog : https://blogs.oracle.com/shay/entry/preventing_queries_when_page_f
-Arun

Similar Messages

  • What if GRANTS statement are executed twice?

    What happens if GRANTS statments are executed twice?
    Will there be any error thrown at the time of second execution?
    And will we need to revert twice in case we need to remove the GRANTS?
    Does it matter which user can give GRANTS if the user has the ccess to pass on the GRANTS for a particular object?
    thanks,
    tik

    To add to what Sybrand said, as long as the username that runs the grant script has the necessary privilege then who issues the grants does not matter. However you cannot directly grant privileges for another users object to yourself even if you can grant them to another user so if the username who ran the script was intended to receive some of the grants then you definitely need to rerun the script.
    Rerunning the script as the intended user would not hurt anything. Only one revoke would be necessary to remove any granted privilege and it can be issued by any user with the privilege necessary to perform the revoke such as the object owner or a DBA.
    HTH -- Mark D Powlel --

  • Form Load rules of InfoPath are executed many times

    By examining the logs I saw that the “Form Load” actions of my InfoPath form in SharePoint are executed twice.
    I made some tests with Fiddler and found out that the page _layouts/15/FormServer.aspx was loaded twice.
    It must be related to the browser because with Chrome the same form is loaded 3 times.
    This behavior is very annoying because my form is initialized using web services which of course take time to execute.
    Is this a bug or am I missing something?
    Additional infos: 
    Occurs with SharePoint 2010 & 2013
    IE 10
    SOAP Web  Services
    Form  published to a content type
    InfoPath executed in browser without code
    Thanks

    Hi,
    Based on your description, my understanding is that the infopath form load rules execute more than one time when form initialized.
    As the data in the form is initialized by SOAP web service, I suggest you check if there are some post back event in the page.
    Here is a detailed article for your reference:
    http://stackoverflow.com/questions/16223324/fiddler-and-monitoring-web-service-traffic  
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Coldfusion pages executed twice

    Hi,
    I've a simple application that need login/pass
    authentification,
    I use ce CFLOGIN process to make it work,
    So I login/pass to the application, all is all right but when
    i browse the pages of my application, i've noticed that each page
    are executed twice !!
    Is there a way to solve this issue in the admin or is my
    process wrong ?
    Any help would be great
    regards
    Francois

    For this you really need to share the code you use, else it's
    difficult to solve, it might has to do with some cflocation actions
    triggered by authentication code.

  • After Update Trigger executes twice when single row is uptd thro proc

    We have the below trigger in our db. When a single record is updated using a procedure the trigger is executed twice and it inserts two records in other table.
    But when i issue an update statement using any sql client tool it is executing only once and inserts only one record in other table.
    Can any one please help me to find the reason?
    Trigger:*
    create or replace TRIGGER CX_HEADER_ESCL_T1 AFTER UPDATE OF STATUS ON CX_HEADER
    FOR EACH ROW
    DECLARE
    "b1-CTRIYJ" boolean := FALSE;
    BEGIN
    IF UPDATING('STATUS') AND(:NEW.status = 'SUCCESS') THEN
    "b1-CTRIYJ" := TRUE;
    END IF;
    IF "b1-CTRIYJ" = TRUE THEN
    INSERT
    INTO siebel.s_escl_req(req_id, created, bt_row_id, rule_id, tbl_name, created_by, group_id)
    VALUES('11111111', CURRENT_DATE, :NEW.row_id, '1-CTRIYJ', 'CX_HEADER', :NEW.last_upd_by, '1-2CU3');
    "b1-CTRIYJ" := FALSE;
    END IF;
    END;
    Procedure:
    CREATE OR REPLACE
    PROCEDURE CLOSE_BATCH
    (ChildRecordCount IN NUMBER, HeaderId IN VARCHAR2, CompletionStatus OUT VARCHAR2) AS
    CafeChildCount NUMBER;
    BEGIN
    select count(*) into CafeChildCount from SIEBEL.CX_CHILD where HEADER_ID=HeaderId;
    IF ChildRecordCount = CafeChildCount THEN
    update SIEBEL.CX_HEADER set STATUS ='SUCCESS', MODIFICATION_NUM = MODIFICATION_NUM+1 where HEADER_ID=HeaderId;
    CompletionStatus := 'SUCCESS';
    ELSE
    update SIEBEL.CX_CHILD set STATUS='FAILED' where HEADER_ID=HeaderId;
    update SIEBEL.CX_HEADER set STATUS='FAILED' where HEADER_ID=HeaderId;
    CompletionStatus := 'FAILED';
    END IF;
    commit;
    /*CompletionStatus := 'SUCCESS';*/
    EXCEPTION
    WHEN OTHERS THEN
    CompletionStatus := SQLCODE;
    rollback;
    END;

    Your problem seems not be related to the trigger restart issue I have already mentioned because you are using a AFTER UPDATE trigger and not a BEFORE UPDATE trigger:
    >
    BEFORE Triggers Fired Multiple Times
    If an UPDATE or DELETE statement detects a conflict with a concurrent UPDATE, then Oracle Database performs a transparent ROLLBACK to SAVEPOINT and restarts the update. This can occur many times before the statement completes successfully. Each time the statement is restarted, the BEFORE statement trigger is fired again. The rollback to savepoint does not undo changes to any package variables referenced in the trigger. Your package should include a counter variable to detect this situation.
    >
    If you are sure that you update a single row and that your trigger fires twice and if you can easiily reproduce the issue, I recommend that you contact Oracle Support and create a Service Request for your issue that could be an Oracle bug.

  • Why is the last script executed twice?

    Here is my problem. I have two files, file1.sql and file2.sql that are called in a third file test.sql. The output from test.sql show that file2.sql was called twice
    --file1.sql
    select 'file1' as str from dual;
    --file2.sql
    select 'file2' as str from dual;
    --test.sql
    @file1.sql
    @file2.sql
    The output shows:
    STR
    file1
    STR
    file2
    STR
    file2
    Why is the last file execute twice. If I change the order of files in test.sql, then file1 is displayed twice

    I found my problem. In test.sql I had '/' in the last line
    --test.sql
    @file1.sql
    @file2.sql
    /

  • When I schedule a Job, the job is executed twice.

    Post Author: sachinddalal
    CA Forum: Data Integration
    Hello,
    I am using Data Integrator Ver 11.0.2.22. I have scheduled the job through Admin Console. When the job is executed it seems that the job is executed twice.
    On the Status tab onDI Administrator, it shows that both the jobs started at same time. The end time of bot the job is different.
    Any one have any idea how this happens?
    Also any way to ensure that the job are not executed twice.
    Thanks,
    Regards
    Sachin Dalal

    Post Author: bhofmans
    CA Forum: Data Integration
    If you get this issue for a scheduled job only, I might be that the schedule is created twice in the OS scheduler. You could check the windows task scheduler (or cron on UNIX) to check for duplicate schedules.
    If you see this issue also for jobs you execute manually (via webadmin or Designer), you can have this kind of problems if the same jobserver is registered multiple times in a repository. You can check the AL_MACHINE_INFO in your repository. It should have one line for each jobserver and one line for each administrator the repo is connected too. I suspect you have some duplicates there (you can just remove them - this table gets populated when adding a repo in the web admin and when adding a repo to a jobserver in the server manager).

  • Revenue recognition has been executed twice

    HI all
    G/L Balance is not correct as below.
    It looks that some of revenue recognition has been executed twice. There are both items that revenue recognition has been executed twice and items that revenue recognition has been executed once within the same sales order.  I have no idea whether there is any pattern exists or not.  This issue needs to be solved by today .
    what could be the reason, can any one help me on this.
    Thanks in advance,
    Raju

    Hi Raju,
    Can u explain us in detail,
    It can be the reason like if the revenue recog is replicating through some nightly job, there r different cases it may ran twice(relication has done twice).
    Best regards
    Bhupathi.

  • ActionPerformed-method executed twice...

    Please help!
    My program behaves strangely; the actionPerformed method on a button is executed twice. The first execution completes the method as it should and makes changes to the model as it should. Then there comes the second execution triggered BY THE SAME BUTTON AT THE SAME TIME as the first execution. How is this possible? And how to fix things? There are no external triggers to the button.
    Here is the example code showing the method actionPerformed and the output that it prints.
    * Method to run when an answer is selected
    public void actionPerformed(ActionEvent arg0) {
    // Printout info on the action
    System.out.println("EKO actionPerformed-method at beginning. Game level " + mymodel.getLevel());
    System.out.println("EKO action command: " + arg0.getActionCommand());
    System.out.println("EKO action was: " + arg0.ACTION_PERFORMED);
    System.out.println("EKO action time: " + arg0.getWhen());
    // Disable buttons
    enableButtons(false);
    // Call method setVastattu to notify the observers that an answer
    // has already been selected (e.g. probressBar needs to be stopped)
    mymodel.setAnswered();
    if (arg0.getActionCommand()==mymodel.getKysymys()[1])
    System.out.println("EKO answer was correct. Game level " + mymodel.getLevel());
    // Call a method to set new choice texts on the buttons and to set the game level one higher
    mymodel.levelUp();
    System.out.println("EKO after levelUp-method. Game level " + mymodel.getLevel());
    else {
    JOptionPane.showMessageDialog(this, "Wrong answer!");
    mymodel.setWrongAnswer();
    EKO actionPerformed-method at beginning. Game level 1
    EKO action command: Kuurupiilo
    EKO action was: 1001
    EKO action time: 1133534802433
    EKO answer was correct. Game level 1
    EKO levelUp method is setting game level to level 2
    EKO after levelUp-method. Game level 2
    EKO actionPerformed-method at beginning. Game level 2
    EKO action command: Punahilkka
    EKO action was: 1001
    EKO action time: 1133534805567
    EKO answer was correct. Game level 2
    EKO levelUp method is setting game level to level 3
    EKO after levelUp-method. Game level 3
    EKO actionPerformed-method at beginning. Game level 3 <= WHY AGAIN???
    EKO action command: Punahilkka <= SAME ACTION HAS ALREADY BEEN HANDLED
    EKO action was: 1001 <= SAME ACTION HAS ALREADY BEEN HANDLED
    EKO action time: 1133534805567 <= EVEN THE ACTION TIME IS THE SAME...

    WOW!
    Exactly! I indeed had the actionlistener added twice. I did not even know that it is possible to have several overlapping actionlisteners! Now my code works fine. Thank you very, very much!
    Elisa

  • Safari 3.2.1 on Leopard single call to cause Oracle report execute twice

    We have a web application that uses javascripts window.open(url) to call an Oracle rdf report and displays report result in pdf format. For unknown reason, the Oracle report got executed twice when only called once from Safari. It only happens in Safari 3.2.1 on Leopard, not in Safari on Tiger. Can you please shed some lights on how Safari works in this matter? Thank you very much, Steve

    Hi Steve,
    It's going to be impossible for anyone to debug with such limited information
    You're more likely to get some JavaScript experts chipping in if you can post some good examples of the code to demonstrate the problematic parts.
    Have you tried running the same code in Firefox with the Firebug extension to confirm the logic is functioning correctly? It's possible that Firebug might indicate where things are going wrong but for whatever reason the bug isn't exposed in Firefox.

  • JSP executing twice

    I am calling one JSP from another, via a Javascript function, as I am using the onclick event of an image button. I am using the following code in the calling JSP:
    <INPUT onclick="nextcitation(this.document)" accesskey="N" type="IMAGE" src="images/nextCitation1.gif">
    and the javascript function is as follows:
    function nextcitation(d)
    d.myform.action = "nccaNextCitation.jsp"
    d.myform.submit();
    return false;
    The called jsp, "nccaNextCitation.jsp" sometimes executes once, like it should, and other times it executes twice, using a second newly spawned thread. This causes a real problem, as I am using this JSP to call a servlet which feeds keystrokes in a screen scraping application to a legacy mainframe app.
    It's the inconsistency part to this that's driving me crazy. If it always happened on the first time the button was clicked or the 2nd time, it would be much easier to debug. As it is, it some time happens right away, and other times will be ok until the 5th or 6th time.
    I've searched the forums and google, and have found a few references where this happens, but none of the suggestions (mainly adding "return false") have worked.
    Is there some browser setting or something in the response header I should be looking for?
    I'm using IE 6.0 and WSAD 4.0.3 as my development tool/server.
    Thanks!

    An image input control is really a submit control. Double-submission can happen if you have an onClick handler on a submit button and have that method also do a form.submit(). You can recreate this problem using the following code (irrelevant sections are left out):
    function submitTheForm() {
        document.form.submit();
    <form>
    <input type="submit" name="submitthisform" value="Click Me" onClick="submitTheForm()">
    </form>In the above case, the form itself is submitted in response to the submit button being clicked, but also in response to the form.submit() call.
    Instead of using an image control, why not just use an HREF around an image instead? For example:
    <img src="images/nextCitation1.gif" border="0">
    Michael

  • Item event handler executed twice

    SAP BO 2004A, C#, UI+DI
    Hi,
    inside an item event handler, a piece of code stores some data in database using RecordSet.Query( "INSERT INTO ..." )
    Running the application, the insert statement is executed twice, what I don't expect.
    If I add a messagebox after the Query()-statement, the code is executed only once.
    Also if I set a breakpoint in debugger, the code is executed only for one time.
    I checked allways the following things:
    1) itemEvent.beforeAction == true
    2) the SAPbouiCOM.Application object is instanciated only for one time.
    Any ideas? Thank you!
    Peter

    Are you filtering?
    It's imperitive that you filter your events. This way your add-on will only receive the events you are interested in...
    This will also allow the SBO -> add-on communication to be more efficient and faster...

  • Some of my songs are listed twice on my iPod itself.  However, when I plug the iPod into my computer, the songs don't show up twice in iTunes when I click on device/music. How do I get rid of the duplicate songs on my iPod?

    Some of my songs are listed twice on my iPod itself.  However, when I plug the iPod into my computer, the songs don't show up twice in iTunes when I click on device/music. How do I get rid of the duplicate songs on my iPod?

    that is odd! that should not be happening.
    Are you syncing your songs right off of itunes itself? because it should be syncing over to the ipod however it is listed in itunes.

  • Photos in imovie are displayed twice ?!

    photos are displayed twice in imovie database !? Why ?

    iMovie is a DV editor and will convert other formats to it at import. So your multi-megabyte image is reduced to a "frame" at 720X480 (SD).
    It is also designed to export these "movies" to DVD formats for playback on a TV. Your TV is a lot lower resolution than your computer monitor.

  • In va01 condition types are appearing twice

    Hi
    In the pricing conditions screen of sales order I find that all the condition types are appearing twice and also calculted taxes twice.please give me solution

    Hi Swapna,
    Make  Exclusive checkbox in your access sequence in V_T682I.Check your calculation of pricing also.Check there are no of threads on this topic.
    Regards,
    Madhu.

Maybe you are looking for

  • Getting error when creating a RFQ in MM module" create rfq item overview"

    Hi, i am a beginer in SAP administration, users are getting this error message and i have done all my research and not able to resolve this issue. This error i am getting when creating a RFQ in MM module and when trying to save the screen "create rfq

  • How to use java source in Oracle when select by sqlplus.

    How to use java source in Oracle when select by sqlplus. I can create java source in Oracle import java.util.*; import java.sql.*; import java.util.Date; public class TimeDate      public static void main(String[] args) public String setDate(int i){

  • Issues with Rectangle tool

    Hello, I am having an issue. I have created three pie chart grahics with some text and boxes. Everything was created in Muse, except for the three piecharts, which are PNGs. I created a colored box (using the rectangle tool) and placed it behind the

  • HT2311 how to authorise a new iMac for iTunes

    Hi All, complete newbie to all things Apple. Just got a new iMac struggling a little with many things any advice would be very welcome ......before i go off the idea that a Mac was a good decision. Current Probs: 1. Cant find out how to authorise the

  • Trouble signing in on HP Website

    I can't sign in on the HP website, it keeps coming up with this error message. I have an HP6510 Photoprinter (Ajax submit failed: error =403, Forbidden)? This question was solved. View Solution.