Some PDIs are currently unavailable, and PDI actions are paused. View the latest updates here. Read More

Compliance Score not visible.

ndahatonde2
Tera Contributor

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". 

5 REPLIES 5

Dr Atul G- LNG
Tera Patron

HI @ndahatonde2 

 

https://devxxxxx.service-now.com/$cmdb_health_properties.do

 

Please run these jobs.

 

DrAtulGLNG_0-1778847029910.png

 

 

*************************************************************************************************************
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

****************************************************************************************************************

Already tried this solution but still not able to view.

 

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

****************************************************************************************************************

Tanushree Maiti
Tera Patron

Hi @ndahatonde2 

 

Refer KB: KB2821288 CMDB Health Dashboard — Compliance Score KPI: What Runs, How It Works, How CIs Are Evaluat... 

 

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" 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti