您的位置:首页 > 运维架构

转:InfoPath 中 repeating table 的submit 时namespace 的问题,为何my: 变为 s1,如何解决?

2009-10-30 17:44 561 查看
http://blogs.microsoft.co.il/blogs/adlaim/archive/2009/01/29/the-following-expression-could-not-be-parsed-because-of-a-syntax-error-or-because-it-uses-an-undefined-namespace-prefix-or-unsupported.aspx

The following expression could not be parsed because of a syntax error or because it uses an undefined namespace prefix or unsupported

The following expression could not be parsed because of a syntax error or because it uses an undefined namespace prefix or unsupported

Problem:

The following error occurs when you try to upload a browser based InfoPath 2007 Form which has .NET “code behind”






Form Verification Status

Failure




The following expression could not be parsed because of a syntax error or because it uses an undefined namespace prefix or unsupported function: /dfs:myFields/dfs:dataFields/tns:SetValue/s1:fdmanifest.xsf


Cause:


For now, it seems that you have built one web service that uses a lot of different complex types ( which have different namespaces ) as a messages to serve different InfoPath forms

Solution:

In short – Just like the joke goes “close everything and re-open”, well it worked for me – or in other words :

Remove the Data Connection to the “Set” [WebMethod]

Save the form

Re-open it

Add a new Data Connection to the “Set” [WebMethod]

.. and walla ;)

and now you’d get this





The ohh so needed “my” namespace instead of “s1” , “s2” , “s3” …. namespaces
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: