Skip to main content
New Participant
Sep 21, 2023 9:12 AM UTC
Question

There was an error in an expression in encryption at Output Expressions : Neither variable(s) nor rule(s) found: expression

I am using a script task to use a expression rule. Saving the value to use further in process model. But getting the error: "There was an error in an expression in encryption at Output Expressions : Neither variable(s) nor rule(s) found: expression".

I am facing the error today only, before that it was fine.

9 replies

dhananjayk3480
Inspiring
Sep 21, 2023 11:39 AM UTC

My guess: In your rule!ALM_UpdatedEncryption you might have defined parametres for any rule or function twice like  

a!urlForTask(taskIds: taskIds: 12345, returnTaskPathOnly: false)

sureshd0004
Inspiring
Sep 21, 2023 11:41 AM UTC

check the design errors log file which might help you pin point issues like this.

New Participant
Sep 21, 2023 12:49 PM UTC

no error in system logs

sureshd0004
Inspiring
Sep 22, 2023 10:10 AM UTC

not the standard out put log refer to the design_errors.csv file. If this error is due to any syntax error this log should provide some insight.

stefanhelzle0001
Brainy
Sep 21, 2023 12:34 PM UTC

We need to see the code of that expression.

New Participant
Sep 21, 2023 12:52 PM UTC

if(
  or(
    a!isNullOrEmpty(ri!message),
    a!isNullOrEmpty(ri!key)
  ),
  null,
  a!localVariables(
    local!message: char(code(ri!message)),
    local!max: 16,
    local!splitted: a!forEach(
      items: enumerate(
        ceiling(length(local!message) / local!max)
      ),
      expression: a!forEach(
        items: fv!item * local!max + 1 + enumerate(local!max),
        expression: index(local!message, fv!item, {})
      )
    ),
    a!forEach(
      items: local!splitted,
      expression: rule!ALM_Encryption(message: joinarray(fv!item), key: ri!key)
    )
  )
)

stefanhelzle0001
Brainy
Sep 21, 2023 1:19 PM UTC

And "ALM_Encryption"?