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
6 subscribers
Views
1865 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I'm trying to check the length of a nested CDT inside of a process model. Ho
davidc639
over 9 years ago
I'm trying to check the length of a nested CDT inside of a process model. However it's giving me this error when trying to check the length of the child CDT or when I try to see if it has a value.
Has anyone seen this before? I realize nested CDT's are not good but this is a huge old application. Changing the CDT structure is not an option. It's currently set up with a three CDT structure. There is the singular parent level CDT, a multiple CDT nested under that, and a multiple nested CDT under that.
In this case it's the SR -> Collaterals -> Collateral Events.
ERROR:An error occurred while evaluating expression: Events_Cdt:if(rule!APN_isEmpty(pv!theCollaterals_Cdts.events_Cdts) = true(), {}, pv!theCollaterals_Cdts.events_Cdts) (Expression evaluation error in rule 'apn_isempty' at function fn!isnull parameter 1: Cannot index "events_Cdts" because it is an array type (List of ArgCollateralEvent). Only fields with scalar types can be indexed from ...
OriginalPostID-207432
OriginalPostID-207432
Discussion posts and replies are publicly visible
0
davidc639
over 9 years ago
...an array.) (Data Outputs)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
venkats533
over 9 years ago
use the following instead: fn!index(pv!theCollaterals_Cdts, "events_Cdts", {})
problem in your syntax is that the parent list itself might be null.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
SANTOSH S KUNDLIK
Certified Associate Developer
over 9 years ago
In addition to Venkat, please check if APN_isEmpty handles null values as input.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel