在工作流中查找域用户的信息,出错,导致工作流内部状态由已启动直接跳转到已取消.
工作流查找配置如下:
1、一个部门列表,其中两列,姓名和上级,列类型都是用户和用户组。
2、一个任务列表,创建项目时启动工作流。
3、工作流中使用创建者列去部门列表中查找他的上级。
错误如下:
1、在工作流内部状态时错误如下:
Retrying last request. Next attempt scheduled in less than one minute. Details of last request: HTTP InternalServerError to http://win-rqdf9p2cnn9/_vti_bin/client.svc/web/lists/getbyid(guid'f9ffe268-c254-485d-8137-d7b3bcd0969b')/Items?%24filter=OData__x65b0__x5efa__x680f_3+eq+'i%3A0%23.w%7Celbi%5Candrewshi'&%24select=ID%2COData__x65b0__x5efa__x680f_3Id%2CGUID Correlation Id: 218d5f2e-e7ee-afde-3a71-d151b6672eaf Instance Id: 04f88fab-43b3-48b4-b770-255df358bde7
2、内部状态变成已取消时错误如下:
RequestorId: 218d5f2e-e7ee-afde-3a71-d151b6672eaf。详细信息: System.ApplicationException: HTTP 500 {"error":{"code":"-2146232060, Microsoft.SharePoint.SPException","message":{"lang":"zh-CN","value":""},"innererror":{"message":"","type":"Microsoft.SharePoint.SPException","stacktrace":" 在 Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)\u000d\u000a 在 Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)\u000d\u000a 在 Microsoft.SharePoint.SPListItemCollection.EnsureListItemsData()\u000d\u000a 在 Microsoft.SharePoint.SPListItemEntityCollection.TryWriteAsOData(ODataWriter writer, RESTfulQuery query, ProxyContext proxyContext)\u000d\u000a 在 Microsoft.SharePoint.Client.ServerStub.Write(Object value, Uri path, ODataWriter writer, RESTfulQuery query, ProxyContext proxyContext)\u000d\u000a 在 Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()\u000d\u000a 在 Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()\u000d\u000a 在 Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)","internalexception":{"message":"<nativehr>0x80131904<\/nativehr><nativestack><\/nativestack>","type":"System.Runtime.InteropServices.COMException","stacktrace":" 在 Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)\u000d\u000a 在 Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)"}}}} {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["35"],"SPRequestGuid":["218d5f2e-e7ee-afde-3a71-d151b6672eaf"],"request-id":["218d5f2e-e7ee-afde-3a71-d151b6672eaf"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"MicrosoftSharePointTeamServices":["15.0.0.4481"],"Cache-Control":["max-age=0, private"],"Date":["Wed, 19 Nov 2014 07:06:49 GMT"],"Set-Cookie":["WSS_KeepSessionAuthenticated={dff38173-a02d-4c4d-8461-ebef9e2ec112}; path=\/"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]} 在 Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) 在 System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) 在 System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
User Profile service和同步程序都启动了。
求解答,多谢。
------解决思路----------------------
创建连接,同步域用户了么?
------解决思路----------------------
你到SharePoint的log里搜索一下Correlation Id: “218d5f2e-e7ee-afde-3a71-d151b6672eaf”
贴出来看看具体的错误信息。
------解决思路----------------------
我看看, 你是使用 ULSViewer 工具找到日志吗?
------解决思路----------------------
表示 没有看到, 仅仅查相关信息 , 有个分类的。
------解决思路----------------------
楼主的工作流是SP Designer做的,还是vs做的?
------解决思路----------------------
这个跟数据库访问有关系,在这个错误附近肯定还有别的错误,你找找看,找到了一起贴出来看看
------解决思路----------------------
从SQL 447的错误“表达式类型 int 对 COLLATE 子句无效。” 来看应该是你说的这个问题,因为COLLATE 子句只能应用于 char、varchar、text、nchar、nvarchar 和 ntext 数据类型。可能是在查找用户的时候,是按照用户的id查找的,而id是int型的。
如果是根据某个用户,查找另一个用户的话,应该有别的办法,需要点儿时间想想。