Problem with publishing an updated form - InfoPath Dev
in

InfoPath Dev

Problem with publishing an updated form

Last post 06-21-2012 03:59 PM by antondeski. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-21-2012 01:28 AM

    Problem with publishing an updated form

    I am attempting to publish a relatively complicated infopath form to a Library.  The form works as specified in preview and I was able to publish it once.  However, when I try to publish an updated version, or indeed go back to the original one (as in the first version with qRules) I get an XMLSchema error something alomg the lines of :

     The global element "Result" has already been defined.

    (I am away from the server ATM so cannot give you the exact  error.)

     I can publish it straight to a library (but it then doesn't work), but the error occurs if I try to use the administrator published process.

    Anybody seen this before?  And since it seems to be related to detritus from the first install, any ideas on how I clean up?

     Cheers

    Tony.. 

  • 06-21-2012 05:32 AM In reply to

    Re: Problem with publishing an updated form

    That's a strange error and it might be a form-specific issue, such as the XSN having two QdabraRules.xsd files in source.

    Would you mind attaching the XSN to this forum thread via the Options tab? If not, perhaps send it to support at qdabra dot com?

    Thanks.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 06-21-2012 09:49 AM In reply to

    Re: Problem with publishing an updated form

    Ernesto has it right -

    I can help you manually clean it up. Usually, I see this issue if for some reason the Qdabra Rules data source has been manually walked through in the form and then the form has been re-injected.

    So, if you'd like to have me clean up the form, you can attach it here or send it to support. If you'd like to try it yourself, first, back up your form. Then, save the form as source files (from the Publish menu in IP 2010, Export Source Files).

    Check the source files - are there two QdabraRules.xsd files? Usually, one is named QdabraRules1.xsd. Delete any QdabraRules.xsd that isn't named QdabraRules.xsd - that is, delete the one named QdabraRules1.xsd or QdabraRules2.xsd.

    Then, open manifest.xsf in a text editor. Search for the name of the file you deleted - for example, QdabraRules1.xsd. You'll find a file reference:

       <xsf:file name="QdabraRules1.xsd">
        <xsf:fileProperties>
         <xsf:property name="dataObject" type="string" value="QdabraRules"></xsf:property>
         <xsf:property name="rootElement" type="string" value="QdabraRules"></xsf:property>
         <xsf:property name="useOnDemandAlgorithm" type="string" value="yes"></xsf:property>
        </xsf:fileProperties>
       </xsf:file>

    Delete the entire xsf:file node.

    You'll also find a data object reference:

      <xsf:dataObject name="QdabraRules" schema="QdabraRules1.xsd" initOnLoad="yes">

    Where the schema is set to use that file. Simply change that:

      <xsf:dataObject name="QdabraRules" schema="QdabraRules.xsd" initOnLoad="yes">

    So it uses the correct file.

    Save your changes. Then right click on the manifest.xsf and select Design to open in design mode. From there, File --> Save As will save the form files as a template again.

    Hilary Stoupa

  • 06-21-2012 03:59 PM In reply to

    Re: Problem with publishing an updated form

    Thanks for that.  It is so nice to have a problem when I go to bed and a perfectly working solution when I get up. :-)
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.