How to set the invalid queries into empty result sets in ServiceNow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2025 09:59 AM
How to set the invalid queries into empty result sets in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2025 10:49 AM
can you please better explain your requirement?
Answers generated by GlideFather. Check for accuracy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2025 10:25 PM
Hi @Mohd Arif Khan ,
Although your question is incomplete but i am replaying as per my understanding of the question:-
To ensure that invalid GlideRecord queries in ServiceNow result in empty result sets, the glide.invalid_query.returns_no_rows system property must be set to true.
Please let me know in case you were asking about same or soemthing else.
If my answer helped you in anyways, please amrk it as Solution accepted.
Regards,
Nikhil Bajaj
Regards,
Nikhil Bajaj
ServiceNow Rising Star-2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2025 10:42 PM - edited 07-26-2025 10:43 PM
Hello @Mohd Arif Khan ,
We have a sys_property glide.invalid_query.returns_no_rows
please take a look on it
Please mark my answer helpful & correct if it helps you
Thank you
G Ramana Murthy
ServiceNow Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
You could use the property glide.invalid_query.returns_no_rows
In our instance we did not have the property, the solution was:
Create a New Property:
-> In the Filter Navigator, type and enter sys_properties.list.
-> Click on New to create a new property.
Populate the Fields:
-> Name: glide.invalid_query.returns_no_rows
-> Type: true | false
-> Value: true
