Skip to main content
October 22, 2024
Question

Expression evaluation error at function a!recordActionField, Cannot compare incompatible operands of type Null and type Boolean.

  • October 22, 2024
  • 5 replies
  • 0 views

I'm getting the error

Expression evaluation error at function a!recordActionField [line xxx]: Cannot compare incompatible operands of type Null and type Boolean.

I'm not sure why this is occurring.

Code:

 a!gridColumn(
              value: a!defaultValue(
                value: ri!recordActions,
                default: a!recordActionField(
                  actions: {
                    a!recordActionItem(
                      action: relatedAction1,
                      identifier: fv!identifier
                    ),
                    a!recordActionItem(
                      action: relatedAction2,
                      identifier: fv!identifier
                    ),
                    a!recordActionItem(
                      action: relatedAction3,
                      identifier: fv!identifier
                    ),
                    a!recordActionItem(
                      action: relatedAction4,
                      identifier: fv!identifier
                    )
                  },
                  style: "MENU",
                  openActionsIn: "SAME_TAB"
                )
              ),
              showWhen: a!defaultValue(ri!showGridActions, true())
            )

    5 replies

    October 22, 2024

    Hi [mention:599d6ecd05ab4d8293a128a28bc19246:e9ed411860ed4f2ba0265705b8793d05] 

    Please share the code from your User filter configured in record type.

    October 22, 2024

    There are lot of filters, is there anything specific I should look in the filters?

    October 22, 2024

     [mention:599d6ecd05ab4d8293a128a28bc19246:e9ed411860ed4f2ba0265705b8793d05] 

    In show when condition, can you check what is the value of ri!showGridActions varible

    shanmathip7466
    October 29, 2024

    Hi [mention:599d6ecd05ab4d8293a128a28bc19246:e9ed411860ed4f2ba0265705b8793d05] ,

    Would like to know when you are getting this error? Is it when you click any record action? 

    Please check in all the record Action's Interface if you have, and do typecast in the two Boolean Comparison where you might have expected a value but it is passed null. If it erroring for a particular record, pass that identifier and test in the interface