Skip to page contentSkip to chat
ServiceNow support
    • Community
      Ask questions, give advice, and connect with fellow ServiceNow professionals.
      Developer
      Build, test, and deploy applications
      Documentation
      Find detailed information about ServiceNow products, apps, features, and releases.
      Impact
      Accelerate ROI and amplify your expertise.
      Learning
      Build skills with instructor-led and online training.
      Partner
      Grow your business with promotions, news, and marketing tools
      ServiceNow
      Learn about ServiceNow products & solutions.
      Store
      Download certified apps and integrations that complement ServiceNow.
      Support
      Manage your instances, access self-help, and get technical support.
CMDB Query Builder is not giving correct result - Support and Troubleshooting
  • >
  • Knowledge Base
  • >
  • Support and Troubleshooting (Knowledge Base)
  • >
  • CMDB Query Builder is not giving correct result
KB0819074

CMDB Query Builder is not giving correct result


707 Views Last updated : Apr 8, 2025 public Copy Permalink
KB Summary by Now Assist

Issue

In CMDB Query builder:

(1) run query1 which shows a total e.g. 500 results.

(2) run query2 which shows a total e.g. 10 results.

(3) run query3 which adds an OR operator to connect both queries e.g. this should combined the results but it is showing only 300 results.

Release

New York Patch 4

Cause

In the 3rd query where you combine relationships, check if there is a reverse direction relationship e.g.between cluster resource and computer

cluster resource
<== defines resources for:: Gets resources from == computer

You can test by removing the reversal to see if you get an accurate count

Resolution

There is known issue KB0789905 - CMDB Query Builder returns incorrect results when 2nd level relationships are involved fixed in Orlando in regards to 2nd level relationships which you can apply and test to see if this also resolves relationships that are reversed.


The world works with ServiceNow.

Sign in for more! There's more content available only to authenticated users Sign in for more!
Did this KB article help you?
Did this KB article help you?

How would you rate your Now Support digital experience?

*

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

Very unsatisfied

Unsatisfied

Neutral

Satisfied

Very satisfied

What can we improve? Please select all that apply.

What are we doing well? Please select all that apply.

Tell us more

*

Do you expect a response from this feedback?

  • Terms and conditions
  • Privacy statement
  • GDPR
  • Cookie policy
  • © 2025 ServiceNow. All rights reserved.