Compliance Score not visible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
My correctness and completeness score are visible, but compliance is showing NaN. When I navigate to Dashboard I get "Job completed however there are no CIs to evaluate".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
HI @ndahatonde2
https://devxxxxx.service-now.com/$cmdb_health_properties.do
Please run these jobs.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Already tried this solution but still not able to view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Do you have any screenshots? Also, try running the Repair CMDB Workspace again and check if it works okay.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi @ndahatonde2
The most common reasons Compliance score is 0 or a class is missing
This is where most customer confusion happens. Here are the exact reasons from the code, in order of how often they occur:
→ Audit has never run — last_run_date on cert_audit is empty. The processor silently skips the audit and marks it as complete with a skipped flag. No error is surfaced. No failure is written. The audit simply does not contribute to the score.
→ Scripted audit not calling updateLastRunDate — for scripted audits, last_run_date is never updated automatically. The script must explicitly call new SNC.CertificationProcessing().updateLastRunDate(auditId) at the very start of the script before any results are persisted. If this call is missing, last_run_date stays empty forever and the health job skips the audit on every single health run — no matter how many times the audit itself has executed.
→ Audit running when the health job fires — the engine falls back to the previous completed run window using prev_last_run_date. If the audit has only ever completed one run, prev_last_run_date is also empty and the audit is skipped again.
→ Audit targets the wrong table — if cert_audit.table is not cmdb_ci or one of its subclasses, the health job never sees it.
→ Audit ran but produced no Failed results — last_run_date is populated but cert_audit_result has no Failed rows in the window. Either all CIs passed or the audit conditions did not match anything.
→ Audit is inactive — excluded from the batch query entirely.
Check following Similar post as well:
CMDB Health Dashboard, under compliance shows " No Data Job Completed, however there were no CIs"
CMDB Health Dashboard, under compliance shows " No Data Job Completed, however there were no CIs"
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti