Error message: Expression evaluation error at function 'tointeger' param

Error message: Expression evaluation error at function 'tointeger' parameter 1: Cannot sub incompatible operands of type List of Variant and type Date with Timezone.

The expression is like: tointeger(data_array - today())

Any ideas how to deal with it?

OriginalPostID-215030

OriginalPostID-215030

  Discussion posts and replies are publicly visible

Parents
  • @shaoyongw As explained above by other practitioners, you may need to depend on type casting where you may use Conversion Function todate() or you may also use typeof() in combination with cast() on the data_array.

    Just in case, if the data_array is an output of the queryEntity, I would suggest converting the queried data to the desired custom data type as that eliminates the usage of conversion functions on individual columns in the CDT which is not a great idea.
Reply
  • @shaoyongw As explained above by other practitioners, you may need to depend on type casting where you may use Conversion Function todate() or you may also use typeof() in combination with cast() on the data_array.

    Just in case, if the data_array is an output of the queryEntity, I would suggest converting the queried data to the desired custom data type as that eliminates the usage of conversion functions on individual columns in the CDT which is not a great idea.
Children
No Data