CMDB Query Builder Schedule creating more & more duplicate records each scheduled run
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2023 04:47 PM
Hi All,
I've recently created a CMDB Query in the CMDB Query Builder that I have selected to run every day in the morning. It's function is to discover all the servers for each business application and on the first run it's working fantastic. However, everyday it the schedule runs it seems to duplicate the business applications it returned (i.e. Day 1 it returned 1 business application, day 2 2 duplicate business applications, etc.).
I'm new to ServiceNow and reporting and was just wondering whether there is a way to stop it duplicating these entries for every run or whether there was something I missed when configuring it in CMDB Query Builder? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 05:17 AM
Did you get any answers on this? I have the same happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 05:04 AM
This is because every time the schedule is executed, it creates a new query id. When looking at your results table, you should add a filter with the latest query id so that you're always looking at the latest results of the query expression.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2024 01:28 PM
Hi, this happened to me and I found out that when I create the report directly from Query Builder interface, it creates a report that is updated, and it doesn't duplicate the results every time the schedule runs.
When I create the reports from "Create Report" and select the Table query, it's when i get duplicates, but if I create the report from the Query Builder interface, it works fine. I hope it helps.