- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 10:05 PM
We’re noticing that the Operational Status field on VM Instance (cmdb_ci_vm_instance) records is being updated twice whenever the SGC (Service Graph Connector) job runs. This results in duplicate audit entries and unnecessary processing. Currently we saw 2-3 CIs having this issue.
Kindly help me to resolve this issue. Any suggestions or guidance would be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
As per ServiceNow’s suggestion, the duplicate updates are caused by the "Cascade Operational Status to vminstance" Business Rule.
During the SGC job, the parent server CI’s operational_status is updated multiple times, triggering the cascade repeatedly and updating VM Instances twice.
Fix (per ServiceNow): Add the following check at the start of the script to ensure it only runs when the field actually changes:
if (!current.operational_status.changes()) {
return;
}
Also review if the SGC job is already updating VM Instances directly—if so, the Business Rule may be redundant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 09:38 PM
Hello @KrushnakumaT,
-
Check ECC Queue Messages:Examine the ECC Queue for the SGC job to see if multiple messages are being generated for the same VM Instance CI and its Operational Status field.
-
Identify the Source:Look for the specific discovery pattern or rule that's causing the duplicate updates.
-
Review ECC Input Payload:Analyze the input payload to ensure it's being correctly classified and the data is consistent.
-
CI Identification Rules:Verify that the identification rules for
cmdb_ci_vm_instance
are correctly configured to match the VM Instance CIs. -
Update Rules:Check for any update rules that might be causing the field to be updated twice or in a way that generates duplicate updates.
-
Data Precedence Rules:Examine data precedence rules to ensure they're not overwriting or creating unintended updates.
-
Ensure Correct Attribute Assignment:Verify that the discovery pattern is properly extracting and assigning attributes to the VM Instance CIs.
-
Check for Bugs:If you've customized the discovery pattern, make sure it's free of bugs or inconsistencies.
-
Consider Upgrades:Ensure that your ServiceNow instance is up-to-date with the latest patches or updates.
-
Review Discovery Logs:Check the discovery logs for any error messages or inconsistencies that might indicate the source of the problem.
-
Configuration:Examine the configuration settings for the SGC job, especially those related to discovery and update processes.
-
Audit Logs:Analyze audit logs to see when and how the Operational Status field was updated.
-
Duplicate Updates from Discovery:If the SGC job is discovering the same VM Instance multiple times, this could lead to duplicate updates. Investigate the discovery settings and schedule.
-
Customizations:If you've customized discovery patterns or update rules, they might be causing the duplicate updates. Carefully review your customizations and compare them to ServiceNow's documentation.
-
Version Control Issues:If there are version control issues with your customizations, it might be causing the duplicate updates. Ensure your customizations are properly managed and synchronized.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
As per ServiceNow’s suggestion, the duplicate updates are caused by the "Cascade Operational Status to vminstance" Business Rule.
During the SGC job, the parent server CI’s operational_status is updated multiple times, triggering the cascade repeatedly and updating VM Instances twice.
Fix (per ServiceNow): Add the following check at the start of the script to ensure it only runs when the field actually changes:
if (!current.operational_status.changes()) {
return;
}
Also review if the SGC job is already updating VM Instances directly—if so, the Business Rule may be redundant.