Error Message ‘Column ows_ does not exist’ when update workflow association on a list
自动部署一个工作流的模板的时候,发现一个很奇怪的问题就是当更新CONENT TYPE工作流关联的时候 会出现异常 Column ows_ does not exist.
1: private void CreateContentTypeAssociation(SPWeb web, SPWorkflowTemplate tmpl, string listName, string contentTypeName, string wfName)
2: { 3: try 4: { 5: SPList taskList = web.Lists["Workflow Tasks"]; 6: SPList historyList = web.Lists["Workflow History"]; 7: if (tmpl != null) 8: { 9: SPWorkflowAssociation association = SPWorkflowAssociation.CreateListContentTypeAssociation(tmpl, wfName, taskList, historyList); 10: if (association != null) 11: { 12: 13: association.AllowManual = true; 14: association.AutoStartCreate = true; 15: association.ContentTypePushDown = true; 16: 17: var associationListContentType = web.Lists[listName].ContentTypes[contentTypeName].WorkflowAssociations.GetAssociationByName(wfName, CultureInfo.CurrentCulture); 18: //site.RootWeb.Lists["Institutions"].ContentTypes[0].WorkflowAssociations.Remove(asscociation); 19: if (associationListContentType != null) 20: { 21: associationListContentType.Enabled = true; 22: // web.Lists[listName].WorkflowAssociations.Update(associationListContentType); 23: web.Lists[listName].ContentTypes[contentTypeName].WorkflowAssociations.Update(associationListContentType); Error message comes here. 24: 25: } 26: else 27: { 28: web.Lists[listName].ContentTypes[contentTypeName].WorkflowAssociations.Add(association); 29: } 30: 31: web.Lists[listName].WorkflowAssociations.UpdateAssociationsToLatestVersion(); 32: } 33: } 34: } 35: catch (Exception ex) 36: { 37: Log("Create WF {0} Failed ({1}-{2})", wfName, ex.Message, ex.StackTrace); 38: } 39: }发现Stefan的博客当中记录了此问题 http://bit.ly/kOniXy.
问题的原因是超了 LIST THRESHOLD 的瓶颈 Lookup Fields + WF Status + PersonGroups.
先删除已有的Workflow Association
到CA站点 Application Manager | General settings | Resource Throttling
然后给”List View Lookup Threshold”设置一个较大的值
IIS 重启 然后把工作流的关联重新关联下就行了.
转载于:https://www.cnblogs.com/SharePointGuy/archive/2012/04/04/2431646.html
总结
以上是生活随笔为你收集整理的Error Message ‘Column ows_ does not exist’ when update workflow association on a list的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 莱斯大学找到了多被提升3G/4G网络性能
- 下一篇: poj3852