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

Similar Messages

  • Infopath form load rule not working in browser forms but works on Client

    Hi
    I am working on an Infopath form and there are rules on form load. The form load checks for a value in a list, if the username() matches the one in the list, then the form would change its view.
    It works when I open it on client, but on the browser it fails.
    Have anyone encountered such an issue.

    Check below:
    http://stackoverflow.com/questions/16222681/infopath-rule-is-not-running-when-checking-sharepoint-list-field-value
    Ensure that "Include data for the active form only" was checked (I had to separate this field into another data connection because that box could not be checked for another field I was using), and
    Ensure that in the rule I was selecting from the "dataFields" folder under the data connection instead of "queryFields"
    http://sharepoint.stackexchange.com/questions/28554/infopath-form-load-rules-not-working
    if I edit the Infopath form on Infopath 2007, it seems that the rules for the load form will be visible if created.
    This look like a bug. Here are the steps below that will lead you to the bug:
    Step 1: Open the infopath form in Infopath 2010 and create 6 rules for Form Load and Save it as a file.
    Step 2: Open that infopath form that you created in Step 1 in InfoPath 2010 and go to the
    Form Load section. You will only see the first 5 rules. The 6th rules that you created for Step 1 will just "vanish". Now, close that infopath form.
    Step 3: Open that infopath form that you created in step 1 in InfoPath 2007 and select Tools > Form Option. In the
    Open and Save category, click the Rules button and add a new rule in it and save it.
    Step 4: Open that infopath form that you modify as describe in Step 3 in InfoPath 2010. That 6th rule will be visible.
    Therefore, there might be a bug in InfoPath 2010 that restrict Rules to a max of 5 in Form Load and thus if anyone open that form in SharePoint, only the first 5 rules will be executed.
    If this helped you resolve your issue, please mark it Answered

  • Form load rules are not working on display and edit forms

    Hi
    I have customized SharePoint 2013 list form using InfoPath 2013. I want to hide certain fields based on user group. I created rules on form load for that. These rules are working fine on New Form but are not working on display and edit form.
    What can I do?

    It could be because the value might have not changed ie, you might be checking for a particular value, the values might have got overwritten when the new form is saved, see if that value is blank or overwritten in display and edit forms.
    I would first check the form load rules and check those values again in Display form and edit form, if the values are not getting cleared/overwritten.
    It would be better if you could upload the screenprint.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • InfoPath form load rule is not checking all the rows in form library

    Hi,
    Requirement:
    We have a form library named "HR Annual Review". In the InfoPath form we have two buttons "Save" and "Submit". User is allowed to Save multiple times and only once using Submit button. The file name of form library "HR
    Annual Review" will be stored in the format “<username>+<mm>+<dd>+<yy>.xml”. Say for example, an user named Mike Walt submitted a form then the file name will be as “MikeWalt012314.xml”. If the same user (Mike Walt)
    submits the form and tries to open the form for subsequent edit, then we need to show a view which has an error info saying “The Appraisal is already submitted for the current appraisal cycle”.
    Solution we tried:
    To achieve the above requirement, we tried using InfoPath Form Load and add a rule to check whether the combination of current user name and the year already exists in the filename column of the form library. But the rule we applied is not checking all the
    rows in the form library. The rule is always checking the first row of the form library.
    What we need:
    We need the validation using InfoPath rule or some other way/solution to check whether the combination of current login username and current year file already exists in the form library.
    Thanks in advance.
    Srivignesh J

    Hi Srivignesh,
    Submit button Uses the Main Data connection to submit the data to the list. This is what you are using and naming the file in the format. You can create secondary data submit that will update the exiting item in the list. With this, you don't have to create
    any rules to check all the rows which is also not possible in OOB InfoPath.
    Once you have the two data connection, hide the toolbar from the form and display these two on the button. For The Submit button, apply the rule to hide the button if created by is not empty. For Save button, apply the rule to hide the button if Created
    By is empty. This way, when a new form is created, you will see the Submit button, and when the user have to update the form, they will see Save button. Hope it help.s
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Bug: method beginning by "get" are called many times

    Hi,
    I have created a managed bean, and in this class, I have a method beginning by "get" like getchPasswordRendered.
    I trace something with System.out.println in this method, and when I call it to set dynamically a composant property like rendered i have this trace many times.
    It's called 2 times to set rendered property to FALSE, 5 times to set it to TRUE.
    Can you explain to me why?
    Thanks.

    Since you did not mention which UI technology you are takling about I'll assume faces.
    In this case your method get called at different times in the jsf (or adf) life cycle. To investigate this further you can use a PhaseListener and print out a message in each phase and see in which phase your getter is called.
    Timo

  • I got an error message: 'iTunes has stopped working. A problem caused the program to stop working correctly. The solution asked me to load latest version which I did many times and still not working... HELP!

    [Window Title]
    Microsoft Windows
    [Main Instruction]
    iTunes has stopped working
    [Content]
    A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
    [Close program]
    This is what I got... sorry, not very tech savvy to copy the error message onto here...
    Have tried uninstalled and re-installed iTune, updated the new version of 10.6... many times over still not working!!!
    I share the frustrations of many here. HELP!!!!!

    Hi there Nok Saensanoh,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    -Griff W.

  • Using onestep dvd form movie (which I have done, successfully, many time before but now, the comuter ejects the disk 5 minutes before it is finished, and teh disk is blank, any thoughts anyone?mes before

    with i dvd, using onestep dvd from movie (which I have done, successfully, many time before) but now the comuter ejects the disk 5 minutes before it is finished, and the disk is blank, any thoughts anyone?

    with i dvd, using onestep dvd from movie (which I have done, successfully, many time before) but now the comuter ejects the disk 5 minutes before it is finished, and the disk is blank, any thoughts anyone?

  • PI SP13 - ALM issue - BPM alerts are received many times

    Hi all,
    the program RSALRTPROC is scheduled every 5 minute to do :
    - deliver
    - escalate
    the program RSALRTPROC is scheduled every week to do :
    - delete
    - reorganisation
    While an alert isn't completed, RSALRTPROC job (deliver) sends my uncompleted BPM alerts every time it is executed ! => every 5 minutes, I receive a mail for each BPM alert
    How to avoid it ? Is it a bug ?

    Hi Jean,
    Try selecting the Suppress Multiple Alerts of This Rule option in Alert Rule Definition. It might help you.
    Thanks and Regards,
    Sanjeev.

  • My ipad will show a blue box with question marks where there are pictures, many times but not all; on top it  Time togo to apple payed support?

    So when i go to a webpage it shows only some pictures. Nothing on instagram or pinterest. Facebook ok though. An d then i can't download apps that need to be updated or new. I can't restore my magazine purchases. Was happening even before latest software was installed. Have reinstalled the software twice. Have restarted ipad numeroustimes. Nothing.  Help!!! Or should i pay for apple support?

    Hi...
    only when I'm using my home router
    Try turning the router off for about 5 minutes, then turn it back on. Same with your Mac.
    Then go to  ~/Library/Caches/com.apple.Safari/Cache.db
    For Lion v10.7x:  To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library
    Move the Cache.db file to the Trash.
    Now try Safari ...
    Tip ...  since you are running v10.7 Lion, the only way to reinstall Safari would be to use Lion Recovery. Downloading and installing Safari from the Apple support page will not work on Lion.

  • HT1918 It will not allow me to changer my form of payment. I have tried many times. Any ideas?

    Itunes will not allow me to change my form of payment. Any ideas?

    I purchased it from my University bookstore and the attending clerk was no better informed than was I.
    The form is required to be infilled in order to receive the serial number necessary for installation of the software
    After five hours of trying, I was able to overcome the flaw in the form, as it appeared on the Acrobat website, and
    complete the two pull-down menus indicating the State in which I live.
    I called Adobe Customer Care for assistance and had to wait two hours for a return call, and by the time the
    call came though I had found that the website form allowed me to pull-down for the State of location.
    Adobe is an uncaring vendor, once it has your money in hand.

  • Running 2 Rules Upon Form Load

    Hello-
    We have an InfoPath 2010 form with 2 views.  The default view is what we want staff to see when they fill out the form.  The second view is a more formal form that needs the staff doesn't need to see.  So we want the form to initially load
    in the default view and then switch to the second view once the form has been submitted to the Form Library.
    We have this set up with 2 rules upon load.  Both of those rules run off of another field.  That field defaults to 1, but then changes to 2 once the form is signed off on.
    Rule 1:  We are pulling some info into our for from our directory.  This rule runs when the field is set to 1.
    Rule 2:  We have a rule to switch the view.  This rule runs when the field is set to 2.
    The issue is, these rules won't run together.  Rule 1 will run just fine, but when the form is re-opened and the field is set to 2, Rule 2 won't run.  We have done some experimenting, if we set Rule 2 to run when the field is set to 1, they both
    work.  Same with when they are both set to 2.  But they won't both run when they are set to different numbers.
    Does anyone have any ideas?
    Thanks a lot!

    The form is opened the first time with the field set to 1.  Then I have a rule set up that when the person fills out the form and a field is filled in, it sets the field to 2.  The intent is to have the form open all subsequent times in the
    second view.  I don't know if that's the best way to go about doing that, but that's the best way we could come up with.
    Do the Form Load rules only run once?

  • Infopath 2013 form load problems connecting to a SharePoint Library.

    I have created an Infopath 2013 form.  I am connecting to a SharePoint 2013 library.  In the infopath form I have multilple views with rules. (Rule is:  if title field is blank use default view). When I first open/create a new form in sharepoint
    (using the web browser option) the default view is there.  After submitting the form, I then try to add a new form and the second view is now the default view.  Is there a setting I need to change.  I have pretty much tried everything I can
    think of to fix this.  Your help would be greatly appreciated!

    Hi,
    According to your description, my understanding is that the second view became the default view when adding a form in SharePoint library.
    By default, the default view will be loaded when opening the form.
    How did you set the rules in the InfoPath form?
    If the form loads with the second view when opening the form, I recommend to check if there is any Form Load rule to load the second view by default.
    Could you please provide more details about the form for reproducing?
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Data Load Rules file - Conditional load

    Hi,
    I need to create a data load rules file to load sales data. The data comes at product, entity, month, year, version, scenario, account level. I need to load data only towards two of the entities, NCC and NCCCBU, i.e if the product is coming under a particular hierarchy called UK then it needs to get loaded against NCC entity member and if the product is under the CBU hierarchy it needs to be loaded against the NCCCBU entity.
    All of the data comes in the same file so I need to load it in one go without splitting the file into two.
    Thanks
    Vikash

    You can achieve this.
    In the data load rule when you are mapping the entity column.
    set the propperties like this:
    Field properties -> Global Prpoperties
    Replace with
    UK NCC
    CBU NCCCBU
    Field properties -> Data Load Prpoperties
    Map the column with entity dimension.

  • An error occurred while trying to connect to a Web service, when InfoPath web enabled form loads.

    Hi Everyone,
    I am getting an error message: An error occurred while trying to connect to a web service, when my InfoPath form tries to load.  The last few days, it only spits this error message in the morning and around 12pm-1pm it resolves itself and the form loads
    fine the rest of the day, oddly enough. 
    A few things about my form:
    1). It is web enabled
    2). The form submits to a form library on the SP server
    3). I use the UserProfileService data connection in the form to auto-populate a few fields
    4). I use a udcx file with correct language stored in the root of the site collection in the data connection library
    5). The form has been working fine until a few days ago
    I noticed while in Central Administration, that the User Profile Service Synchronization is Stopped.  Not sure if this is causing some or all of the problem. If I need to start it I will need to contact my farm administrator to do this, since I do not
    have the service account information.
    Also, I looked thru the log files on the SharePoint server and found the following by searching for the Correlation ID shown when the error comes up, I won't put in everything just the important messages.
    Schema file was already loaded: BuiltInActiveXControls.xsd
    FormServer Partial Trust - Proxy operation invoked in the SHIM process.
    FormServer Partial Trust - Invoking proxy operation for Web service adapter failed with exception Operation is not valid due to the current state of the object. for Url=https://<SP URL>/_vti_bin/UserProfileService.asmx
    Data adapter failed during OnLoad: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.
    The following query failed: GetUserProfileByName (User: , Form Name: Expense Report, IP: , Connection Target: <SP URL>/Data Connections/GetUserProfileByName.udcx, Request: , Form ID: urn:schemas-microsoft-com:office:infopath:Expense-Report:-myXSD-2014-04-11T21-06-32
    Type: DataAdapterException, Exception Message: The custom code in the form cannot be run. This functionality may be deactivated on the server.

    Hi B.,
    You are on the right track. I recommend that you first get the User Profile Synchronization Service started because that itself could be the root cause of the issue.
    If that doesn't fix it then focus your attention on the GetUserprofileByName data connection. I always use my secure store ID for this connection. I add the ID by editing the udcx file and then publishing it again.
    Hope this helps.
    Daniel Christian (MCTS)

  • Checked some items of multiple-selection list box when form loaded in infopath

    Hi
    I customize sharepoint list with infopath. I have multiple-selection list box and want to checked some items of that automatically when form loaded. how can do this?
    Thanks.

    Hi,
    According to your description, my understanding is that you want to pre-select some items in the Multiple-Selection List Box.
    I recommend to follow the steps below to achieve this goal:
    Click Default Values under Data tab in InfoPath, expand the dataFields and navigate to the Multiple-Selection List Box field.
    Set the Default Value of the Multiple-Selection List Box field.
    Right click the field under the Multiple-Selection List Box group, then select Add another Value Below and set the Default Value for this field.
    Repeat step3 based on the number of the items that you want to be pre-selected.
    More information are provided in the link below:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • NUMERO DE NOTA FISCAL

    Bom dia pessoal, Tudo bem? Estou com um problema, o seguinte, tenho um processo normal de vendas, crio a ordem, remessa, e documento de faturamento, por ultimo gero a nota fiscal e impressão, mas não esta gerando o numero da nota fiscal, o campo nume

  • Goofy error messages when installing iTunes 7.5

    When I try to upgrade to iTunes 7.5 on my Windows XP, I get the following message: "The installation was interrupted before the requested operations for iTunes could be completed..." Then a minute later I get another: "iTunes has stopped working. A p

  • How to create an update form

    I am facing some problems when creating an update form. I have created the form page and the action page. It seems to be working but I have a couple of issues with a list menu and a radio button. The code is: <!--- Check that ID was provided ---> <cf

  • Iphoto 11 slide show Export fault

    ok when i export the slide show to m4v 1280*800 first 2 mins ok but after 2mins the m4v displayed white screen and music normal,who can help me?

  • HT2729 iPod Syncing Issues

    I bought twelve new songs this week on my PC through iTunes and have synced my iPod 5th Gen. over a dozen times and the songs are not transferring. I've tried to upload them through Cloud and had no success. I've restored my device in an attempt to r