InfoPath 2010 XMLFormView gives Fatal Error when a value is set from the WebPart to the field having a rule - InfoPath Dev
in

InfoPath Dev

InfoPath 2010 XMLFormView gives Fatal Error when a value is set from the WebPart to the field having a rule

Last post 02-26-2014 08:25 AM by Jigs28. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 02-24-2012 03:53 AM

    InfoPath 2010 XMLFormView gives Fatal Error when a value is set from the WebPart to the field having a rule

    We have created many Browser Based InfoPath forms and used the XMLFormView control to display controls in webparts. The Webpart has a button which when clicked sets a value for a field in the InfoPath form. Now this field also has some rules like submitting to a sharepoint library and setting other flags on the form. So the sequence of event is as follows:

    1. User clicks on the button
    2. Button sets the value "1" in the field
    3. A rule is configured on this field  i.e. which checks that if 1 is found in the field it will execute a rule with number of actions. The actions include settings some values in the fields and also submitting to a data connection

    Now this worked great in SharePoint 2007 and InfoPath 2007. Now we are in process of migrating to SharePoint 2010. However during our trial migration we found that this has stopped working. When we set something on the field in InfoPath form the value get set to the field but the rule never execute. And InfoPath form  says that "Some rules are not applied" and in the error details say  "Exception of type 'Microsoft.Office.InfoPath.Server.Util.InfoPathFatalException' was thrown.

    This has put us in great trouble because there are more than 40 forms running with this logic.

    Please help.

  • 03-01-2012 04:22 PM In reply to

    Re: InfoPath 2010 XMLFormView gives Fatal Error when a value is set from the WebPart to the field having a rule

    I'm sorry to not have any direct advice - I think since there are multiple rules on this field, I'd try disabling all but one (in just one instance where you have this logic) and see if the error occurs - re-enable the rules one at a time so you can at least figure out what rule is causing the issue.

    Hilary Stoupa

  • 03-02-2012 03:57 AM In reply to

    Re: InfoPath 2010 XMLFormView gives Fatal Error when a value is set from the WebPart to the field having a rule

    Hi Hilary Stoupa, Thanks for replying me as u have suggested i had removed all the rules except one rule which would set value in another field.But it seems to give the same error...

    If is there any difference between the working of XMLFormView in 2007 and 2010 then plz let me know because in 2007 it works great.

  • 05-31-2012 07:16 AM In reply to

    Re: InfoPath 2010 XMLFormView gives Fatal Error when a value is set from the WebPart to the field having a rule

    Prashant, When we were trying to set the value of any Infopath form field that has some rules or data validation from FormServer.aspx.cs page, the same Infopath fatal error we recieved.

    We fixed this issue using jquery.

    1. Take a Textbox field on Infopath form and set its screentip lets say "xyz".

    2. Write a change event of this field.

    public void xyz_Changed(object sender, XmlEventArgs e)
            {
                if (e.NewValue != string.Empty)
                {
    //set the value of required field              

                }
            }

    3. In that change event, set the value of the other field to "1" which has configured some rules.

    4. Now on button click of web part, right a Javascript function:

    function fnSetData()

    {

          var temp = ($('input[title="xyz"]'));
                clientDataTxt.val("1");
                clientDataTxt.blur();

    }

     

    Please try this approach. This approach fixed our issue.

  • 06-07-2012 03:22 AM In reply to

    Re: InfoPath 2010 XMLFormView gives Fatal Error when a value is set from the WebPart to the field having a rule

    I have also resolved the XMLFormView  Fatal Error issue the same way and it works .... CHEERS........:)

    Filed under:
  • 02-26-2014 08:25 AM In reply to

    • Jigs28
    • Not Ranked
    • Joined on 02-26-2014
    • Posts 2

    Re: InfoPath 2010 XMLFormView gives Fatal Error when a value is set from the WebPart to the field having a rule

    I am Having Attachment Field in Infopath 2010 form, i want to make it mandatory on some condition, when i set the validation rule on attachment filed and i check condition like "attachment is blank" then cannot be blank it returns Fatal Exception. I tried it from Attachment Change Event by setting another flag field, setting filed value in attachment Change event returns same exception. c_DisplayClass1.Setvalue What can be wrong??
    Filed under:
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.