Error when adding disabled step into channel Version Rules

When adding disabled step into channel Version Rules and saving the following error is reported. If step is enabled in the process page no errors are reported.

Steps to reproduce:

Disable a step in the Process
Open channels page
Edit channel
Add disabled step into Version Rules
Save

Octopus version: 3.11.11

Error shown on Channel page:

Unable to find action names System.Linq.Enumerable+<ExceptIterator>d__721[System.String]on projectProjects-3 System.Exception at Octopus.Server.Web.CanonicalActionNameMapper.GetIdsFromNames(String projectId, ReferenceCollection actionNames) in CanonicalActionNameMapper.cs:line 46 at Octopus.Server.Web.Api.Rules.ChannelVersionRulesWillBePersisted.<>c__DisplayClass6_0.<AfterMapBeforeStore>b__0(ChannelVersionRuleResource rule) in ChannelVersionRulesWillBePersisted.cs:line 25 at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at Octopus.Server.Web.Api.Rules.ChannelVersionRulesWillBePersisted.AfterMapBeforeStore(Channel model, ChannelResource resource, ISpecialRuleContext context) in ChannelVersionRulesWillBePersisted.cs:line 24 at Octopus.Server.Web.Infrastructure.Api.Responder1.ExecuteRules[TRule](Action2 ruleCallback) in Responder.cs:line 171 at Octopus.Server.Web.Infrastructure.Api.ModifyResponseDescriptor2.Responder.Execute() in ModifyResponseDescriptor.cs:line 64
at Octopus.Server.Web.Infrastructure.Api.Responder`1.Respond(TDescriptor options, NancyContext context) in Responder.cs:line 145
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at Octopus.Server.Web.Api.OctopusRestApiModule.<>c__DisplayClass0_0.<.ctor>b__0(Object o) in OctopusRestApiModule.cs:line 46
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)

The diagnostics page has the following:

Unhandled error on request: http://tfs/octopus/api/channels/Channels-64 8f32e3bcba4642fdb69046054b26d76c by EBabayan@carsondellosa.com : Unable to find action names System.Linq.Enumerable+<ExceptIterator>d__721[System.String]on projectProjects-3System.Exception: Unable to find action namesSystem.Linq.Enumerable+d__721[System.String] on project Projects-3
at Octopus.Server.Web.CanonicalActionNameMapper.GetIdsFromNames(String projectId, ReferenceCollection actionNames) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Web\CanonicalActionNameMapper.cs:line 46
at Octopus.Server.Web.Api.Rules.ChannelVersionRulesWillBePersisted.<>c__DisplayClass6_0.b__0(ChannelVersionRuleResource rule) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Web\Api\Rules\ChannelVersionRulesWillBePersisted.cs:line 25
at System.Linq.Enumerable.WhereSelectListIterator2.MoveNext() at System.Collections.Generic.List1…ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)
at Octopus.Server.Web.Api.Rules.ChannelVersionRulesWillBePersisted.AfterMapBeforeStore(Channel model, ChannelResource resource, ISpecialRuleContext context) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Web\Api\Rules\ChannelVersionRulesWillBePersisted.cs:line 24
at Octopus.Server.Web.Infrastructure.Api.Responder1.ExecuteRules[TRule](Action2 ruleCallback) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Web\Infrastructure\Api\Responder.cs:line 171
at Octopus.Server.Web.Infrastructure.Api.ModifyResponseDescriptor2.Responder.Execute() in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Web\Infrastructure\Api\ModifyResponseDescriptor.cs:line 64 at Octopus.Server.Web.Infrastructure.Api.Responder1.Respond(TDescriptor options, NancyContext context) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Web\Infrastructure\Api\Responder.cs:line 145
at System.Dynamic.UpdateDelegates.UpdateAndExecute3[T0,T1,T2,TRet](CallSite site, T0 arg0, T1 arg1, T2 arg2)
at Octopus.Server.Web.Api.OctopusRestApiModule.<>c__DisplayClass0_0.<.ctor>b__0(Object o) in Z:\buildAgent\workDir\eec88466c176b607\source\Octopus.Server\Web\Api\OctopusRestApiModule.cs:line 46
at Nancy.Routing.Route.<>c__DisplayClass4.b__3(Object parameters, CancellationToken context)

Hi,

Thanks for getting in touch! It looks like you are running into the following issue: https://github.com/OctopusDeploy/Issues/issues/3220
The good news is we are about to push a fix shortly! (Hopefully within the next few hours) You will need to upgrade to Octopus 3.11.15 when it becomes available, it should fix your issue. :slight_smile:

Let me know if that helps, or if you are still receiving this error after you upgrade to 3.11.15.

Best regards,
Daniel