When Workflow project is open and stays idle for some time, an attempt to check in to repository will throw an error InsufficientPriveledgeException.
Reloading the project will normally re-establish the connection to WorkflowRepositoryService on SMP Server and check-in will work again. Message :
Error getting repository project information
Symantec.Workflow.Manager.Common.Operation+OperationException: The server
operation failed with the following error: InsufficientPrivilegeException ---> System.ServiceModel.FaultException:
InsufficientPrivilegeExceptionServer stack trace:
at
System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime
operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean
oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan
timeout)
at
System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,
ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at
Symantec.Workflow.Manager.Repository.Proxy.IWorkflowRepositoryService.GetProjectById(String
SessionId, Guid projectId)
at Symantec.Workflow.Manager.Repository.ServerGetProject.ExecuteAsync()
at Symantec.Workflow.Manager.Repository.ServerOperation.BeginExecution()
--- End of inner exception stack trace ---
at
Symantec.Workflow.Plugins.Deploy.EntMan.MainForm.GetRepoProjectInfo(AbstractOrchestrationProject
project)
When capturing request to WorkflowRepositoryService with Fiddler we get 500 response and in SMP logs we can also see the following entries:Checking Access Privilege for sessionId:'a91fe03b-c21b-499e-a74b-81698cb72056'
Process: w3wp (5564),
Thread ID: 38,
Module: w3wp.exePriority: 4,
Source:Symantec.Workflow.Web.Repository.WorkflowRepositoryService.CheckAccessPrivilege
Invalid SessionID
Process: w3wp (5564), Thread ID: 38, Module: w3wp.exe
Priority: 1, Source: Symatec.Workflow.Platform.UserManagement.VerifySession
Workflow 7.x, 8.x
The error message is misleading while in reality we are dealing with expired session.
Symantec development is aware of the issue and the work is targeted towards next release.
The current workaround is to save and reload the project before check-in/check-out attempt.
In Workflow Designer click on File menu > Reload Project, on save prompt click Yes.