InfoPath-无法打开,表单定义(.xsf)包含错误 [英] InfoPath - Cannot open, Form definition (.xsf) contains errors

查看:142
本文介绍了InfoPath-无法打开,表单定义(.xsf)包含错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设法设法打破了我的信息路径形式:(当我尝试打开它时(预览模式和设计模式),我收到以下错误: InfoPath无法打开以下形式的D:\ infopath \ formname.xsn.表单定义(.xsf)文件包含错误.

I have somehow managed to break my infopath form :( When I try to open it (both preview mode and design mode) I get the following error: InfoPath cannot open the following form D:\infopath\formname.xsn. The form definition (.xsf) file 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 any way to resolve this? Or is my only option to re-create the form? Thanks in advance for any advice!

推荐答案

是的-看过几次...

Yep - seen this a couple times...

您需要编辑manifest.xsf.实际上,InfoPath表单是一个存档,因此将.xsn模板重命名为.cab,然后以常规方式提取.现在,编辑manifest.xsf,以删除对232行上的keyref的引用.

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

最后,通过右键单击manifest.xsf并选择设计来重建表单(您可能会发现有多个错误-您只会看到第一个错误报告,因此您可能需要重复执行以上每个错误).最后,您需要重新发布.

Finally, rebuild your form, by right-clicking on the manifest.xsf and selecting design (You may find there are more than one errors - you're only seeing the first one reported back, so you may need to repeat the above for each error). Finally, you'll need to republish.

这篇关于InfoPath-无法打开,表单定义(.xsf)包含错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆