Home > Forum > Known bugs > Sequence contains no elements - Giving privileges v. 2022.1.4.127

Sequence contains no elements - Giving privileges v. 2022.1.4.127

Has someone met the problem with "Giving privileges" action, after update to v. 2022.1.4.127? Action stopped matching user data on "DisplayName" (COS_DisplayName) or ID that is stored as BPSid (COS_BPSid). Finding user is now possible only by email address (COS_email). COS_BPSid and COS_email are not the same in my case. That seems to be a bug as the log of action suggests that data is searched firstly by BPSid then by DisplayName. The problem appears while using field "single string record". While using field "Person" there is no such problem.

LOG:
Sequence contains no elements
at System.Linq.ThrowHelper.ThrowNoElementsException()
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at WebCon.WorkFlow.Base.Authentication.CacheAd.UserSearcher.FindByBpsIdThenByDisplayNameThenSynchronizeIfNeededThenValidate(String input, AccountSearchScope scope)
at WebCon.WorkFlow.Base.Authentication.CacheAd.UserSearcher.FindByBpsIdThenByDisplayNameThenSynchronizeIfNeededThenValidate(String input)
at WebCon.WorkFlow.Base.Authentication.UserSearcherCached.FindByBpsIdThenByDisplayNameThenSynchronizeIfNeededThenValidate(String input)
at WebCon.WorkFlow.Base.Security.ElementPermissions.Set(String login, DicSecurityLevels level, DicSecurityChangeReason reason, String reasonAdditional, Boolean isPermanent)
at WebCon.WorkFlow.Base.Actions.SetSecurity.SetForAllElementsAndReturnErrorMessage(IWFAction wfAction, StringBuilder logMessageBuilder, XmlActionsConfig config, DicSecurityChangeReason reason, XmlSecurityReasonAddMsgConfig reasonAdditional, DataTable elements, String securityPhrase, List`1 peopleToSet)
at WebCon.WorkFlow.Base.Actions.SetSecurity.FireAction(WorkFlowObject wfObject, IWFAction wfAction, ITagParser tagParser, IAutomationDataHelper automationDataHelper, String& message, String& logMessage)
at WebCon.WorkFlow.Base.Automations.Engine.Evaluators.ActionEvaluator.FireAction(ActionBase actionObject, String& userLogMessage, String& adminLogMessage)
at WebCon.WorkFlow.Base.Automations.Engine.Evaluators.ActionEvaluator.Evaluate()

Nobody has replied in this thread yet.