Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+2
person also asked this
people also asked this
Replies
9 replies
Answers
5 answers
Subscribers
9 subscribers
Views
10962 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Is there a way to set up a query entity to filter on fields that are an empty st
Jason Ruvinsky
Certified Senior Developer
over 9 years ago
Is there a way to set up a query entity to filter on fields that are an empty string?
The following returns an error:
a!queryFilter(
field: "FIELDNAME",
operator: "<>",
value: ""
),
However, operator: "is null" seems to exclude the results that are "".
This is especially an issue because Appian will write an "" to a varchar field when a null is passed into a Write to Datastore entity. Now there is no way to query for these rows.
OriginalPostID-142029
OriginalPostID-142029
Discussion posts and replies are publicly visible
Top Replies
jarrods229
over 9 years ago
+5
suggested
The following seems to work in the query filter from what I can tell operator: "not in", value:{""}
Parents
+1
abhi.jana
Appian Employee
over 9 years ago
This may require applying a second filter on the FIELDNAME column of the retrieved datasubset to perform a length check. As to the issue where the db stores nulls as empty strings - this has been reported to Engineering (Reference no. AN-45612)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
+1
abhi.jana
Appian Employee
over 9 years ago
This may require applying a second filter on the FIELDNAME column of the retrieved datasubset to perform a length check. As to the issue where the db stores nulls as empty strings - this has been reported to Engineering (Reference no. AN-45612)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
No Data