Skip to main content
September 21, 2023
Question

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

  • September 21, 2023
  • 9 replies
  • 0 views

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
September 21, 2023

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
September 21, 2023

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

September 21, 2023

no error in system logs

sureshd0004
September 22, 2023

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
September 21, 2023

We need to see the code of that expression.

September 21, 2023

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
September 21, 2023

And "ALM_Encryption"?