An error occurred while executing a save: Expression evaluation error

Hi,
Please let me know if you have seen this error before and have come across this.
I have seen this error before when there is a connection issue to the database and it can't retrieve data.
However, in this case, I have verified over and over again that the connection is fine.

Users get this error:
An error occurred while executing a save: Expression evaluation error in rule 'nod_getcrslineitemsforenterdetailsform' at function a!queryEntity: An error occurred while retrieving data.

Here is the script for 'nod_getcrslineitemsforenterdetailsform': (I believe it is complaining about the section that has the ri!location but I can't figure out what is is)

a!queryEntity(
entity: cons!NOD_CRS_LINE_ITEM,
query: a!query(
logicalExpression: if(
and(
isnull(ri!chargeType),
isnull(ri!location),
isnull(ri!tradeHour),
isnull(ri!tradeInterval)
),
null,
a!queryLogicalExpression(
operator:...

OriginalPostID-226536

OriginalPostID-226536

  Discussion posts and replies are publicly visible

Parents
  • ... "AND",
    filters: {
    a!queryFilter(field: "crsStatementId_Int", operator: "=", value: ri!statementId),
    if(
    isnull(ri!chargeType),
    {},
    a!queryFilter(field: "chargeTypeId_int", operator: "=", value: ri!chargeType)
    ),
    if(
    isnull(ri!location),
    a!queryFilter(field: "locationId_int", operator: "is null"),
    a!queryFilter(field: "locationId_int", operator: "=", value: ri!location)
    ),
    if(
    isnull(ri!tradeHour),
    {},
    a!queryFilter(field: "tradeHour_int", operator: "=", value: ri!tradeHour)
    ),
    if(
    isnull(ri!tradeInterval),
    {},
    a!queryFilter(field: "tradeMinute_int", operator: "=", value: ri!tradeInterval)
    )

    }
    )
    ),
    pagingInfo: ri!pagingInformation
    )
    )
Reply
  • ... "AND",
    filters: {
    a!queryFilter(field: "crsStatementId_Int", operator: "=", value: ri!statementId),
    if(
    isnull(ri!chargeType),
    {},
    a!queryFilter(field: "chargeTypeId_int", operator: "=", value: ri!chargeType)
    ),
    if(
    isnull(ri!location),
    a!queryFilter(field: "locationId_int", operator: "is null"),
    a!queryFilter(field: "locationId_int", operator: "=", value: ri!location)
    ),
    if(
    isnull(ri!tradeHour),
    {},
    a!queryFilter(field: "tradeHour_int", operator: "=", value: ri!tradeHour)
    ),
    if(
    isnull(ri!tradeInterval),
    {},
    a!queryFilter(field: "tradeMinute_int", operator: "=", value: ri!tradeInterval)
    )

    }
    )
    ),
    pagingInfo: ri!pagingInformation
    )
    )
Children
No Data