Form Template is not Valid - InfoPath Dev
in

InfoPath Dev

Form Template is not Valid

Last post 10-17-2015 10:25 PM by Himanshu_Saxena. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-14-2015 12:09 PM

    Form Template is not Valid

     I just upgraded from an InfoPath 2007/Windows XP environment to a InfoPath 2010/Windows 7 environment.  I am attempting to make a minor edit on a form template (adding some text) and when I go to preview in browser, I get the following error:

     InfoPath cannot open the following view: View 1
    The following view file is not valid: view1.xsl
    The .xsl file is not valid XSL.
    xsl:choose must have at least one xsl:when child.

    This form is set to open in the client...not the browser.  It is currently published to a SharePoint library. I have tested by making different types of edits (text edits, adding controls, removing controls) and each time when I preview in browser, I get this error.

    Has anyone seen this before or know what may be causing the issue?

  • 10-17-2015 10:25 PM In reply to

    Re: Form Template is not Valid

    It seems you have tried modifying the view.xsl file. The only way to get this working is either export the InfoPath form or rename the XSN to CAB and then extract it, now you'll see a file view1.xsl. Open this file and try to figure it out what has been changed. Hold on.... :) Lets do this.... open the form in design.. create a new View and copy the content of View 1 to this view and delete the View 1. I think I should work.
    Himanshu Saxena
    MSFT
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.