I got this error when none of the interfaces or expression rules mentioned use the load() function, they all use a!localVariables(). Does anyone know why this error could still be appearing?
"Interface Definition: Expression evaluation error ... The load() function cannot be used within rules called by looping functions other than a!forEach(). Pass the necessary variables via rule inputs or use a!forEach()."
Discussion posts and replies are publicly visible
Can you give more context on your use case - what were you trying to do? There might be other ways to achieve a similar outcome without using fn!reduce().
I'm modernizing the GBL suite and part of that is replacing apply() and similar functions with a!forEach() or other modern function where appropriate. I discovered this issue as well testing in an interface after making my modernization changes. Looks like I will need to do a deeper dive of a rewrite.