Domanda Infopath Fatal Error...??

  • venerdì 24 febbraio 2012 11:52
     
     

    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.


    Mohammad Azam A. Khan

Tutte le risposte

  • giovedì 16 febbraio 2012 14:40
     
     

    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.

  • lunedì 20 febbraio 2012 08:47
    Moderatore
     
     

    Hi ,

    Do you use the web browser forms in a custom web part with a button which will set a specific field value when clicked ?

    When edit the form ,you should set the EditingStatus to Editing . When use the XMLFormControl ,you don’t need to set the xml location
    and xsn location at the same time .Just need to set one of the locations .

    For more information ,please refer to this site:SPS 2010 Infopath XmlFormView control in a custom webpart: http://social.technet.microsoft.com/Forums/en-CA/sharepoint2010programming/thread/87846ef8-2790-4847-8cd5-f45e2338dad4

    Thanks


    Entan Ming

    TechNet Community Support

  • lunedì 20 febbraio 2012 10:22
     
     

    Thanks Entan for your response. I am setting either one of the xsl or xsn property in all the webparts developed. Also this was working absoultely fine in SharePoint 2007 with more than half a thousand of forms submitted using this approach but this broke in SharePoint 2010. Is there any change in how the XMLFormView control work in SharePoint 2010?

    Please note that this issue only occur when I set some value in a field having some rules. The rule can be anything like setting some other field or submitting a form to the library. If I remove the rule the form work fine.

    Please advice.

  • venerdì 24 febbraio 2012 12:00
     
     

    Hi,

    Maybe I don't get what you mean, but can't you use the InfoPath form webpart to accomplish this?


    Blog: Married to SharePoint Twitter: @SPNiax

  • venerdì 24 febbraio 2012 12:42
     
     

    Thanks for your reply,

    Actually we have a browser enabled forms which is displayed in SharePoint site using XMLFormView Control in a Webpart.

    Earlier in sp2007 this used to work great but when we started migration on our test server with the same code it starts giving "Fatal Exception"

    Our Scenario is that:-

    1)We are using UserControl on which XMLFormview  control is added along with another common controls like Button, TextBox and Label. Now User has to type the password after filling the whole form and has to click on submit button.

    2)On submit button we validate the password using Directory Services. If user has entered correct password we set true to the InfoPath field.

    3) The field has a rule which Submits the form to the library.

    As i stated earlier that this procedure still works fine in SharePoint 2007. but gives Fatal Exception in 2010

    While migrating form from 2007 to 2010 we had saved our form as a 2010 browser form

    Any help would be Appreciated or if you have any another solution to perform this task please suggest. We have more than 40 forms in a queue.



    Mohammad Azam A. Khan

  • giovedì 8 marzo 2012 07:26
     
     

    I would like add one more thing in the following issue.

    1.  the problem occur only when you implement migration from sharepoint 2007 to sharepoint 2010 .i.e. uploading infopath form 2007 on sharepoint 2010.
    2. Second problem occur when the implementation has done at farm level..

    So if your create fresh form, then u will not receive fatel exception.

    We are still struggling with the issue.