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

本文解决了在尝试上传带有.NET“代码背后”的浏览器基于InfoPath2007表单时出现的错误。该错误提示为无法解析表达式,可能是因为语法错误或者使用了未定义的命名空间前缀或不支持的功能。文章提供了具体的解决步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 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”

ServerError

Form Verification Status

Failure

Btn 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 :

  1. Remove the Data Connection to the “Set” [WebMethod]
  2. Save the form
  3. Re-open it
  4. Add a new Data Connection to the “Set” [WebMethod]
  5. .. and walla ;)

and now you’d get this

DataConnectionDefinition

 

 

The ohh so needed “my” namespace instead of “s1” , “s2” , “s3” …. namespaces

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值