Error: null value at right hand side operand in arithmetic sum operation.

Issue #865 resolved
Alexander Bogatyrenko created an issue

Look attach. Without the condition, everything works ok. And with the condition we have error "Error: null value at right hand side operand in arithmetic sum operation." Field {10379} is not empty and has number type.

Comments (5)

  1. Fidel Castro Armario repo owner

    Hi @Bogatyrenko,

    I think that the problem is caused by another post-function which is executed after the one you show in the screenshot. That pos-function should be using target field of current post-function at the right hand side of a sum. When you add a condition, the target field may be not set, an later the calculations based on it will fail, since it's not initialized.

    Try removing the condition, and using any of the following formulas instead:

    {10379} > 250 ? ({10379} - 250) * {10376} : 0
    

    or

    max(({10379} - 250) * {10376}, 0)
    
  2. Alexander Bogatyrenko reporter

    @fcarmario The function is unique on the transition

    Both conditions with a parse error.

  3. Fidel Castro Armario repo owner

    Hi @Bogatyrenko,

    You should keep parameter Conditional execution empty.

    The 2 math expressions I have provided to you are intended to be used in parameter Formula (not in Conditional execution).

  4. Log in to comment