Lookup with 5 arguments is rendered incorrectly

I have a lookup with 5 filters in the data structure filter set. When used, it fails with an error. After removing one filter (tried with two different ones), the lookup works fine.

2024-04-25 19:48:52,944 [12] ERROR Origam.Workflow.WorkflowEngine - Rule evaluation failed. Rule: 'RentalTransaction_ValidateBookingCount'
Origam.OrigamException: Rule evaluation failed. Rule: 'RentalTransaction_ValidateBookingCount'
 ---> System.Exception: Rule evaluation failed. Rule: 'RentalTransaction_ValidateBookingCount'
 ---> System.Exception: Extension object 'http://schema.advantages.cz/AsapFunctions' does not contain a matching 'LookupValue' method that has 11 parameter(s).
 ---> System.Exception: Transformation result invalid.
 ---> System.Xml.Xsl.XsltException: Exception happened during transformation. See inner exception for details:

 ---> System.Xml.Xsl.XslTransformException: Extension object 'http://schema.advantages.cz/AsapFunctions' does not contain a matching 'LookupValue' method that has 11 parameter(s).
   at System.Xml.Xsl.Runtime.XmlExtensionFunction.Bind()
   at System.Xml.Xsl.Runtime.XmlExtensionFunctionTable.Bind(String name, String namespaceUri, Int32 numArgs, Type objectType, BindingFlags flags)
   at System.Xml.Xsl.Runtime.XmlQueryContext.InvokeXsltLateBoundFunction(String name, String namespaceUri, IList`1[] args)
   at <xsl:template match="RentalTransaction">(XmlQueryRuntime , XPathNavigator )
   at <xsl:template match="ROOT">(XmlQueryRuntime , XPathNavigator )
   at <xsl:apply-templates>(XmlQueryRuntime , XPathNavigator )
   at Root(XmlQueryRuntime )
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results)
   at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer)
   at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results, XmlResolver documentResolver)
   at System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, XmlWriter results)
   at Mvp.Xml.Common.Xsl.XslReader.StartTransform()
   --- End of inner exception stack trace ---
   at Mvp.Xml.Common.Xsl.XslReader.TokenPipeMultiThread.Read(XmlNodeType& nodeType, QName& name, String& value)
   at Mvp.Xml.Common.Xsl.XslReader.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at Origam.Service.Core.XmlContainer.Load(XmlReader xmlReader, Boolean doProcessing)
   at Origam.Rule.Xslt.CompiledXsltEngine.Transform(Object engine, XsltArgumentList xslArg, XPathDocument sourceXpathDoc, IXmlContainer resultDoc) in D:\a\1\s\backend\Origam.Rule\Xslt\CompiledXsltEngine.cs:line 76
   at Origam.Rule.Xslt.MicrosoftXsltEngine.Transform(IXmlContainer data, Object xsltEngine, Hashtable parameters, String transactionId, IDataStructure outputStructure, Boolean validateOnly) in D:\a\1\s\backend\Origam.Rule\Xslt\MicrosoftXsltEngine.cs:line 200
   --- End of inner exception stack trace ---
   at Origam.Rule.Xslt.MicrosoftXsltEngine.Transform(IXmlContainer data, Object xsltEngine, Hashtable parameters, String transactionId, IDataStructure outputStructure, Boolean validateOnly) in D:\a\1\s\backend\Origam.Rule\Xslt\MicrosoftXsltEngine.cs:line 224
   --- End of inner exception stack trace ---
   at Origam.Rule.Xslt.MicrosoftXsltEngine.Transform(IXmlContainer data, Object xsltEngine, Hashtable parameters, String transactionId, IDataStructure outputStructure, Boolean validateOnly) in D:\a\1\s\backend\Origam.Rule\Xslt\MicrosoftXsltEngine.cs:line 251
   at Origam.Rule.Xslt.AbstractXsltEngine.Transform(IXmlContainer data, Guid transformationId, Guid retransformationId, Hashtable parameters, String transactionId, Hashtable retransformationParameters, IDataStructure outputStructure, Boolean validateOnly) in D:\a\1\s\backend\Origam.Rule\Xslt\AbstractXsltEngine.cs:line 178
   at Origam.Rule.Xslt.AbstractXsltEngine.Transform(IXmlContainer data, Guid transformationId, Hashtable parameters, String transactionId, IDataStructure outputStructure, Boolean validateOnly) in D:\a\1\s\backend\Origam.Rule\Xslt\AbstractXsltEngine.cs:line 137
   at Origam.Rule.RuleEngine.EvaluateEndRule(IEndRule rule, Object data, Hashtable parameters, Boolean parentIsTracing) in D:\a\1\s\backend\Origam.Rule\RuleEngine.cs:line 349
   --- End of inner exception stack trace ---
   at Origam.Rule.RuleEngine.EvaluateEndRule(IEndRule rule, Object data, Hashtable parameters, Boolean parentIsTracing) in D:\a\1\s\backend\Origam.Rule\RuleEngine.cs:line 382
   at Origam.Rule.RuleEngine.EvaluateEndRule(IEndRule rule, Object data) in D:\a\1\s\backend\Origam.Rule\RuleEngine.cs:line 323
   at Origam.Workflow.WorkflowEngine.EvaluateEndRule(IWorkflowStep step) in D:\a\1\s\backend\Origam.Workflow\Engine.cs:line 963
   at Origam.Workflow.Tasks.CheckRuleEngineTask.OnExecute() in D:\a\1\s\backend\Origam.Workflow\Tasks\CheckRuleEngineTask.cs:line 48
   at Origam.Workflow.ProfilingTools.<>c__DisplayClass4_0.<ExecuteAndLogDuration>g__FuncToExecute|0() in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 68
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Func`1 funcToExecute, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 89
   at Origam.Workflow.ProfilingTools.ExecuteAndLogDuration(Action action, String logEntryType, String path, String id, Func`1 logOnlyIf) in D:\a\1\s\backend\Origam.Workflow\ProfilingTools.cs:line 72
   at Origam.Workflow.Tasks.AbstractWorkflowEngineTask.MeasuredExecution() in D:\a\1\s\backend\Origam.Workflow\Tasks\AbstractWorkflowEngineTask.cs:line 100
   at Origam.Workflow.Tasks.AbstractWorkflowEngineTask.Execute() in D:\a\1\s\backend\Origam.Workflow\Tasks\AbstractWorkflowEngineTask.cs:line 113
   --- End of inner exception stack trace ---

LookupValue supports 4 parameters at maximum. For more parameters LookupValueEx needs to be used.