Skip to main content
Known Participant
Oct 22, 2024 9:47 AM UTC
Question

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

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

    Participating Frequently
    Oct 22, 2024 10:23 AM UTC

    Hi [mention:599d6ecd05ab4d8293a128a28bc19246:e9ed411860ed4f2ba0265705b8793d05] 

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

    Known Participant
    Oct 22, 2024 10:28 AM UTC

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

    Participating Frequently
    Oct 22, 2024 10:43 AM UTC

     [mention:599d6ecd05ab4d8293a128a28bc19246:e9ed411860ed4f2ba0265705b8793d05] 

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

    shanmathip7466
    Inspiring
    Oct 29, 2024 10:01 PM UTC

    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