日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Error Message ‘Column ows_ does not exist’ when update workflow association on a list

發布時間:2025/3/15 编程问答 18 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。