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
8 subscribers
Views
1643 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I'm having trouble with the expression validator not liking the name of my C
jamesw353
over 12 years ago
I'm having trouble with the expression validator not liking the name of my CDT. I have a cdt that is based off of an xml standard (MISMO if you're curious). Some of the field names start with an underscore and when I try to reference them in the expression editor I get the following error and cannot save the expression. "The character _ could not be recognized in the given context." This is the expression that I'm trying to save. "median(pv!cdtResponse_Group.RESPONSE.RESPONSE_DATA.CREDIT_RESPONSE.CREDIT_SCORE.@attributes._Value)"
Since Appian runs in java and java does not like having an underscore at the start of a variable name, is that why I'm not able to use this expression? I'm still able to view these values if I reference a higher level in the cdt, so I'm guessing there's some Appian magic going on that keeps the names acceptable. If that's the case can I disable the validator? ...
OriginalPostID-66098
OriginalPostID-66098
Discussion posts and replies are publicly visible
0
jamesw353
over 12 years ago
Correction, I checked and oracle only discourages the _ as the first character of a variable name. It is still "Technically Legal".
This data is being converted to and from xml, so I'd like to avoid changing the naming convention. Since the toxml and torecord functions make that so easy :-)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Brett Shomaker
Appian Employee
over 12 years ago
try wrapping it in single quotes.
MyCDT.'_someFieldStartingWithUnderscore'
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jamesw353
over 12 years ago
Of course it was something simple. Thanks Brett!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel