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
3 replies
Subscribers
4 subscribers
Views
2909 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Reports
Error evaluating function 'todatasubset' : Comparison method violates its general contract!
alicehelena
over 8 years ago
We have a requirement to generate a tempo report which pulls data from a DB view. The underlying data is first explicitly casted using an expression rule and then converted to todatasubset
local!reportDatasubset: todatasubset(apply(rule!getDataSubSet, local!reportData.data),local!recordPagingInfo)
We are getting the below error intermittently when the todatasubset function is called and attached the complete server log.
14:35:26,398 INFO [stdout] (ajp-/0.0.0.0:8009-8) 2016-10-28 14:35:26,396 [ajp-/0.0.0.0:8009-8] ERROR com.appiancorp.rest.shared.AppianExceptionMapper - Internal Server Error on REST API invocation.
14:35:26,398 INFO [stdout] (ajp-/0.0.0.0:8009-8) com.appiancorp.process.expression.ExpressionRuntimeException$AppianExceptionProvider: Expression evaluation error in rule at function 'todatasubset' [line 103]: Error evaluating function 't...
OriginalPostID-243617
server_log.txt
Discussion posts and replies are publicly visible
Parents
0
Tyler Criste
Appian Employee
over 8 years ago
I'm not sure about that error, but could you explain the reasoning for using apply() with todatasubset? The more common pattern would be to use a!queryEntity() which returns a single datasubset, rather than a list of datasubsets as apply would return.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Tyler Criste
Appian Employee
over 8 years ago
I'm not sure about that error, but could you explain the reasoning for using apply() with todatasubset? The more common pattern would be to use a!queryEntity() which returns a single datasubset, rather than a list of datasubsets as apply would return.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data