InfoPath - Unable to Open, Form Definition (.xsf) contains errors

I somehow managed to break the infopath form :( When I try to open it (in both preview and design mode) I get the following error: InfoPath cannot open the following form D: \ infopath \ formname.xsn. File form definition (.xsf) contains errors.

When I click on more details, I get this:

The form definition (.xsf) file contains elements, attributes, or structures that are not valid.

Error details:
The keyref 'ruleSet_5' does not resolve to a key for the Identity Constraint '{http://schemas.microsoft.com/office/infopath/2003/solutionDefinition}ruleset_name_key'.

Line 232, Position 3
</xsf:xDocumentClass>
--^

      

Is there a way to resolve this? Or is my only option to create a form? Thanks in advance for any advice!

+2


source to share


3 answers


Yep - saw this a couple of times ...

You will need to edit the manifest.xsf file. In fact, the InfoPath form is an archive, so rename the .xsn template to .cab and extract it in the usual way. Now edit the manifest.xsf file to remove the keyref reference on line 232.



Finally, rebuild your form by right clicking on the manifest.xsf file and selecting design (you may find there are multiple errors - you only see the first message back, so you may need to repeat the above for each error). Finally, you will have to republish.

+4


source


Edit the .xsf file manually and remove any reference to "ruleSet_5" and save. Try to reopen the form.



If you do not remove the XML node container from "ruleSet_5".

+2


source


I also ran into this problem, tried to edit the xsf (saved form on local disk, renamed to cab and extracted in folder) but there was no error link. The other UpdateItem.xls file had a link to the error, I deleted that, but after that wasn't sure how to rebuild the form. Tried zipping the folder again, renaming to xsn but didn't work.

Finally, I realized that one of the "views" on the form was still referencing a remote data connection. Thus, if the form has multiple views (Edit, Display, etc.) - Go to the Page Design tab, the first section in the ribbon - browse all views and make sure that none of the views reference the remote data connection ...

0


source







All Articles