Symptoms
When trying to deploy a workflow, the following error occurs:
The "SourceCode.SharePoint15.DeploymentTask.Task" task failed unexpectedly.
System.Exception: Service: SharePointIntegration
Service Guid: redacted]
Severity: Error
Error Message: Access denied. You do not have permission to perform this action or access this resource.
InnerException Message:
at SourceCode.SharePoint15.Utilities.Common.HandleSmartObjectException(SmartObjectException smartObjectException)
at SourceCode.SharePoint15.WorkflowIntegration.WorkflowIntegrationManager.RegisterRemoteEventReceivers(String siteURL, Guid listId, String eventReceiverTypes, String remoteEventReceiverURL)
at SourceCode.SharePoint15.DeploymentTask.Task.ExecuteInternal()
at SourceCode.SharePoint15.DeploymentTask.Task.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.andltExecuteInstantiatedTaskandgtd__20.MoveNext()
The list involved was created on Appit Beta instance and upgrading to the Appit RTM changed the ClientID, which caused the error.
Diagnoses
Tried to deploy a workflow and got an error.
We have not seen this same error on our support instance, so was unable to reproduce.
Looking at server rights, the user seemed to have correct permissions, so we are unsure why we are seeing this message.
Resolution
A beta ClientID was issued by Ops team so the Remote Event Receiver could be removed. All tokens were then removed and the registration wizard was reran. The workflow was then able to be deployed.