Skip to main content
rahulp0011
New Participant
Sep 21, 2026 8:05 AM UTC
Question

The input “Records” must not be null or empty.

All the process variables currently contain null values:

  • pv!currentCase
  • pv!redeemedLoans
  • pv!amortization

We are using the following expression to exclude null values:

reject( a!isNullOrEmpty(_), { pv!currentCase, pv!redeemedLoans, pv!amortization } )

However, when all process variables are null, the expression returns an empty list, which causes the error.
 

The input “Records” must not be null or empty.

Is there an alternative way to configure the XOR gateway that it skips the write operation when all values are null?, since i dont want to increase number of node by adding xor gate ?

3 replies

stefanhelzle0001
Brainy
Sep 21, 2026 8:50 AM UTC

Did you try to use the all() function, instead of reject()? I returns true if the function returns true for all items in the list.

rahulp0011
New Participant
Sep 21, 2026 9:25 AM UTC

tried with all() function, getting following error
 


 

stefanhelzle0001
Brainy
Sep 21, 2026 10:43 AM UTC

The image is too small.

I suggest to test this in an expression rule.