Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
7 subscribers
Views
5928 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Error message: Expression evaluation error at function 'tointeger' param
shaoyongw
over 8 years ago
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
0
sagarl511
A Score Level 2
over 8 years ago
@shaoyongw - This error comes only when data_array is {} as this represents a object with no data type associated with it. You may have to type cast to date and then use it.
For e.g - tointeger(todate({})-today()) will return some result.
and tointeger({}-today()) - gives error as you mentioned.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sagarl511
A Score Level 2
over 8 years ago
@shaoyongw - This error comes only when data_array is {} as this represents a object with no data type associated with it. You may have to type cast to date and then use it.
For e.g - tointeger(todate({})-today()) will return some result.
and tointeger({}-today()) - gives error as you mentioned.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data