none
Error On Task Assignment: Only site owners can add/delete a task RRS feed

  • 질문

  • Hi,

    I'm getting a very strange error, the reason I'm calling it strange because I couldn't found a single post on this error over the web. Workflow is working fine until I use Assign a Task/ Start a Process activity. It throws the error "Only site owners can add\/delete a task", for full error message please see below:

    Following is my farm topology.

    Web Server: SharePoint 2013

    App Server: SharePoint 2013

    Workflow Server: Workflow Manager

    What I have tried:

    1. Full control permission to service account
    2. Used task assignment activities within App step
    3. Gave separate permission on the workflow task list
    4. Created a new workflow task list

    Error:

    RequestorId: b1646f10-36ce-d1c9-0000-000000000000.

    Details: An unhandled exception occurred during the execution of the workflow instance.

    Exception details: System.ApplicationException: HTTP 500 {"error":{"code":"-2130575223,

    Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"Only site owners can add\/delete a task"},

    "innererror":{"message":"Only site owners can add\/delete a task","type":"Microsoft.SharePoint.SPException","stacktrace":" at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)\u000d\u000a at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)\u000d\u000a at Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean suppressAfterEvents, String filename, Boolean bPreserveItemUIVersion)\u000d\u000a at Microsoft.SharePoint.SPListItem.UpdateInternal(Boolean bSystem, Boolean bPreserveItemVersion, Guid newGuidOnAdd, Boolean bMigration, Boolean bPublish, Boolean bNoVersion, Boolean bCheckOut, Boolean bCheckin, Boolean suppressAfterEvents, String filename, Boolean bPreserveItemUIVersion)\u000d\u000a at Microsoft.SharePoint.SPListItem.Update()\u000d\u000a at Microsoft.SharePoint.SPListItemEntityCollection.Create()\u000d\u000a at Microsoft.SharePoint.ServerStub.SPListItemEntityCollectionServerStub.InvokeMethod(Object target, String methodName, ClientValueCollection xmlargs, ProxyContext proxyContext, Boolean& isVoid)\u000d\u000a at Microsoft.SharePoint.Client.ServerStub.InvokeMethodWithMonitoredScope(Object target, String methodName, ClientValueCollection args, ProxyContext proxyContext, Boolean& isVoid)\u000d\u000a at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethodWithRequestODataEntry(Object target, ServerStub serverStub, MethodInformation methodInfo, RequestODataObject entry)\u000d\u000a at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.InvokeMethodWithRequestODataEntry(Object target, ServerStub serverStub, String methodName)\u000d\u000a at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.TryAddEntity(Object entity, ServerStub serverStub, Object& newEntity)\u000d\u000a at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()\u000d\u000a at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()\u000d\u000a at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)","internalexception":{"message":"<nativehr>0x81020089<\/nativehr><nativestack><\/nativestack>Only site owners can add\/delete a task","type":"System.Runtime.InteropServices.COMException","stacktrace":" at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)\u000d\u000a at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bUnRestrictedUpdateInProgress, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)"}}}} {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["119"],"SPRequestGuid":["b1646f10-36ce-d1c9-b772-ffe30ba44e0a"],"request-id":["b1646f10-36ce-d1c9-b772-ffe30ba44e0a"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4841"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Sun, 28 Apr 2019 11:58:57 GMT"],"Server":["Microsoft-IIS\/8.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context)at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

    Web Server:
    Web Server:

    IN
    Thanks, Kashif


    • 편집됨 Kashif Nizam 2019년 4월 29일 월요일 오전 5:44
    2019년 4월 29일 월요일 오전 5:42

모든 응답

  • Kashif - did you ever get this worked out?

    2019년 9월 29일 일요일 오전 12:07
  • Hi Stephan, 

    I didn't see your message until now.  

    Not sure, if you're still looking for the solution, but might be helpful for others. 

    When I was having this issue, at the same time there was another issue with User Profile Service. UPS was unable to sync users' updates from AD. As per Microsoft, we had to upgrade our CU in order to just get the support and then I switch UPS to AD Import. This not only resolve the user profile sync, but also the workflow issue. I had this idea that it might be related to UPS as I could see in the details the user by whom the workflow was running was not there in the UPS or was not in correct form, can't recall it properly.

    This should also work for you.

    Thanks


    IN
    Thanks, Kashif

    2019년 11월 1일 금요일 오전 7:20