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网络性能
- 下一篇: MySQL 数据库怎样把一个表的数据插入