Symptoms
During deployment to our UAT environment we are receiving the following error for all workflows. Also see screenshot attached.
Fail Fmg.Hub.HR.ChangeOfConditionsWorkflowFMG.Hub.HR.ChangeOfConditions.CrewChange Process : No workflow deployment environments could be found.
No workflow deployment environments could be found. System.Reflection.TargetInvocationException: No workflow deployment environments could be found. ---> System.Exception: No workflow deployment environments could be found.
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.AddEnvironment(EnvironmentSettingsManager envManager, DeploymentPackage package)
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.DeployWorker(Object param)
--- End of inner exception stack trace ---
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.Deploy(Stringg] parts, String kprojDir, String kprojName, String kprxDir, String kprxName, String targetFramework, IEnumerable`1 refs)
at SourceCode.Runtime.Services.Workflow.IsolatedDeploymentController.IsolatedDeploy(Action`1 data, ComplexType ct, IEnumerable`1 refs, String sessionCookie, ISecurityManager securityManager)
at SourceCode.Runtime.Services.Workflow.WorkflowDeploymentService.Deploy(IDeploymentContext context)
at SourceCode.Deployment.Runtime.ServerSession.BeginDeploy() 46 s
Diagnoses
Issues with environment templates.
Resolution
Firstly, the environment template was empty for teh target environment. The client filled it in.
Secondly, a user permission was set on the environment5 template, but it was for another user and did not include any of the K2 accounts.
We removed the account (so that there where no user permisisons set on the template) and was able to deploy.