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
11 replies
Subscribers
4 subscribers
Views
10985 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Reports
QueryEntity Difference between = and includes
saravanarajanj
Certified Senior Developer
over 8 years ago
Hi,
We are experiencing the below behavior while using queryEntity.
The queryFilter with "=" operator is returning zero records whereas the filter with "includes" operator returns more records. We are using Oracle database, I ran the query with "=" and "like" operator and able to fetch records in both case.
a!queryFilter(
field:"department",
operator:"=",
value:"Engineering"
)
a!queryFilter(
field:"department",
operator:"includes",
value:"Engineering"
)
Any suggestions/comments are appreciated on this. Thanks!
OriginalPostID-240015
Discussion posts and replies are publicly visible
Parents
0
Chris
over 8 years ago
I recently had this issue with Oracle and the cause was a line feed (char(10)) after the data I was querying. You could notice when copying the result and pasting it into the SQL editor, it pasted a blank line after the data. My resolution was to simply add char(10) to the queryFilter, such as:
a!queryFilter(
field:"department",
operator:"=",
value:"Engineering" & char(10)
)
Might be worth a shot, would be a quick test.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Chris
over 8 years ago
I recently had this issue with Oracle and the cause was a line feed (char(10)) after the data I was querying. You could notice when copying the result and pasting it into the SQL editor, it pasted a blank line after the data. My resolution was to simply add char(10) to the queryFilter, such as:
a!queryFilter(
field:"department",
operator:"=",
value:"Engineering" & char(10)
)
Might be worth a shot, would be a quick test.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data