2013-03-05 73 views
1

我有一个InfoPath 2010表单,它使用户能够创建假期请求并将它们存储在SharePoint 2010表单库中。InfoPath 2010表单未更新SharePoint列

当用户提交表单时,库中Vacation Status列的值设置为Pending,从而触发向用户管理器发送电子邮件的工作流程。

经理单击电子邮件中的链接,该链接在浏览器中打开表单,然后单击批准。这会将Vacation Status列的值更改为Approved,从而触发一个工作流程,该工作流程会将电子邮件发送回用户以表示该请求已获批准。

问题是,表单出现了问题。当经理单击“批准”时,它应该触发InfoPath表单规则,该规则将Vacation Status列的值设置为Approved,但列未更新。 Modified列也未更新,当点击Approve按钮时,没有任何内容正在上传到SharePoint。

InfoPath表单有一个规则,该规则在单击按钮Approve时运行,其操作是将VacationStatus字段的值设置为Approved;该字段随后会在提交时提升到SharePoint库。

事件查看器中未生成错误。我已启用ULS日志记录并在下面附加提取。我希望这已经足够了 - 我不想过于详细地阻止帖子。

Calling GlobalStorage.SetItem with index IsConversionInProgress value type Boolean. 
XmlFormView: Entering OnInit 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
XmlFormView: Leaving OnInit 
FormServerPage OnInit Enter: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
GlobalStorage.Enter: New context - {F888E1A1-20CA-470d-A2F4-498A9ECD1C67} Total contexts - 1 
GlobalStorage.Leave: Old context - {F888E1A1-20CA-470d-A2F4-498A9ECD1C67} Total contexts after Leave - 0 
Calling GlobalStorage.SetItem with index IsConversionInProgress value type Boolean. 
Calling GlobalStorage.SetItem with index SiteAndWebCache value type SiteAndWebCache. 
XmlFormView: Entering OnDataBinding 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
Calling GlobalStorage.SetItem with index BusinessLogicAssemblies value type Dictionary`2. 
Calling GlobalStorage.SetItem with index EditingSessionId value type String. 
Creating document with editingSessionId: 1cff78abc351429e8df5c5733d481407_90175d3f7fa04d9384760909b98c30a6 
Calling GlobalStorage.SetItem with index TimeZoneId value type UInt16. 
DataObject.Deserialize.Load for XML name: finished in:00:00:00.0005151. 
Calling GlobalStorage.SetItem with index CultureData value type RequestCultureData. 
Calling GlobalStorage.SetItem with index FormState value type FormStateBag. 
Calling GlobalStorage.SetItem with index XmlForm value type XmlFormHost. 
XmlForm.PlayEventLog: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 finished in:00:00:00.0003444. 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
XmlFormView: Leaving OnDataBinding 
FormServerPage OnInit Leave: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
FormServerPage CreateChildControls Enter: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
FormServerPage CreateChildControls Leave: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
XmlFormView: Entering Render 
Calling GlobalStorage.SetItem with index GlobalPageObjectsRendered value type Boolean. 
DataObject.Serialize.Save for XML name: finished in:00:00:00.0009733. 
Disposing all cached sites. 
XmlFormView: Leaving Render 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
Calling GlobalStorage.RemoveAllDecumentOnly! 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
Calling GlobalStorage.RemoveAll! 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 
FormServerPage EndProcessRequest: http://intranet/_layouts/FormServer.aspx?XmlLocation=/apps/Vacation/INTRANET_FHenry - 20130227003027.xml&ClientInstalled=true&Source=http://intranet/apps/Vacation/Forms/Temporary%2520view.aspx&DefaultItemOpen=1 
Request: Posting back to the Postback Page (XmlHttp). 
Calling GlobalStorage.SetItem with index GlobalPageObjectsRendered value type Boolean. 
GlobalStorage.Enter: New context - FormControl Total contexts - 1 
Calling GlobalStorage.SetItem with index IsConversionInProgress value type Boolean. 
Calling GlobalStorage.SetItem with index SiteAndWebCache value type SiteAndWebCache. 
Calling GlobalStorage.SetItem with index CultureData value type RequestCultureData. 
Calling GlobalStorage.SetItem with index TimeZoneId value type UInt16. 
Calling GlobalStorage.SetItem with index BusinessLogicAssemblies value type Dictionary`2. 
Calling GlobalStorage.SetItem with index EditingSessionId value type String. 
Creating document with editingSessionId: 1cff78abc351429e8df5c5733d481407_90175d3f7fa04d9384760909b98c30a6 
DataObject.Deserialize.Load for XML name: finished in:00:00:00.0005092. 
Calling GlobalStorage.SetItem with index FormState value type FormStateBag. 
Calling GlobalStorage.SetItem with index XmlForm value type XmlFormHost. 
PostbackPage.PlayEventLog:http://intranet/_layouts/Postback.FormServer.aspx finished in:00:00:00.0002112. 
Abandoning state for request. Form Template: urn:schemas-microsoft-com:office:infopath:Vacation-Form:-myXSD-2012-06-28T00-57-45 
Not persisting state for request due to previous errors. Form Template: urn:schemas-microsoft-com:office:infopath:Vacation-Form:-myXSD-2012-06-28T00-57-45 
Disposing all cached sites. 
Calling GlobalStorage.RemoveAll! 
GlobalStorage.Leave: Old context - FormControl Total contexts after Leave - 0 

我希望我已经解释清楚。我绝不是InfoPath的专家。这是由不再可用的承包商开发的代码。它一直工作得很好,然后停了下来。我不知道可能会影响它的任何配置更改,权限等。不过,我已经重新部署了几次这个表格。这并没有解决问题,但它也没有破坏任何东西,因为最初提交表单数据到SharePoint的工作。

+0

当'批准被点击'时,它是否通过用于主表单提交的相同数据连接提交? – 2013-03-05 09:19:18

+0

您的回复指出我正确的方向。不知何故提交规则已从按钮中删除。如果你的建议没有促使我检查,我永远不会发现它。非常感谢你。 – 2013-03-05 11:47:26

+0

我已经把它写成一个正确的答案,所以你可以把它标记为这样。对于发现这个问题的其他人来说会更容易理解。顺便说一句,您可能想要使用http://sharepoint.stackexchange.com未来的SharePoint相关问题。 – 2013-03-05 13:39:13

回答

0

请检查您的数据连接。 Approve规则使用的(并且失败)可能与主提交数据连接不同。

相关问题