Reapply CI lookup rules UI action shows 0 records processed

rahulyamgar
Tera Guru

Hello friends,

While running UI action named - "Reapply CI Lookup Rules" on Unmatched Discovered Items, its not showing number of records processed. It shows as all counts as 0 such as Processed, 0Updated, etc.

Does anyone have idea ?

Thanks,
Rahul

1 ACCEPTED SOLUTION

Krishna100
Kilo Expert

Hello Rahul,

We are in the same boat. It's not working for me in DEV and yes, I'm applying this on unmatched items.

Something got changed in the code in the app upgrade or so. It's working as expected in my UAT.

Here is the code that stopping us to reapply:

    reRunCILookupRules: function(srcCiSysIds) {
        var discoverItemGr = new GlideRecord(Constants.TABLE.SRC_CI);
        var sysIds = srcCiSysIds.split(",");
        for (var i = 0; i < sysIds.length; i++) {
            if (discoverItemGr.get(sysIds[i]) && discoverItemGr.source.integration.is_reapply_ci_lookup_supported)
                this._processDiscoveredItem(discoverItemGr);
        }
    },

condition is_reapply_ci_lookup_supported is newly added. I don't have this line in my UAT code. Not sure how I got this line in DEV. I'm trying to find it in versions / history of changes.

 

Regards,

Krishna

 

 

View solution in original post

4 REPLIES 4

Shivam Sarawagi
ServiceNow Employee
ServiceNow Employee

Hi,

If you are talking about selecting the Discovered items from List view and clicking the list action "Reapply", then once check for any errors in logs. 

Also, do check if the job is completed or not.

 

Thanks,

Shivam

Voona Rohila
Kilo Patron
Kilo Patron

Hi rahulyamgar

I faced this for Qualys integration. I guess re-apply lookup rules on unmatched records will always be zero(unless we change unmatched ci details manually)

  • I think re-apply lookup rule is taking the unmatched CI during lookup and not updating discovered item with latest found CI.

 

Instead try to reconcile unmatched discovered items 

https://docs.servicenow.com/bundle/quebec-security-management/page/product/vulnerability-response/ta...

 

Correct me if I am wrong.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Krishna100
Kilo Expert

Hello Rahul,

We are in the same boat. It's not working for me in DEV and yes, I'm applying this on unmatched items.

Something got changed in the code in the app upgrade or so. It's working as expected in my UAT.

Here is the code that stopping us to reapply:

    reRunCILookupRules: function(srcCiSysIds) {
        var discoverItemGr = new GlideRecord(Constants.TABLE.SRC_CI);
        var sysIds = srcCiSysIds.split(",");
        for (var i = 0; i < sysIds.length; i++) {
            if (discoverItemGr.get(sysIds[i]) && discoverItemGr.source.integration.is_reapply_ci_lookup_supported)
                this._processDiscoveredItem(discoverItemGr);
        }
    },

condition is_reapply_ci_lookup_supported is newly added. I don't have this line in my UAT code. Not sure how I got this line in DEV. I'm trying to find it in versions / history of changes.

 

Regards,

Krishna

 

 

Krishna100
Kilo Expert

OK..the versions for Security Support Common are different from DEV and UAT.

DEV is 12.2.4 and UAT is 12.0.1. They changed the code in the latest update. I upgraded my Tenable Integration plugin and it resolved the issue. 

Now, I see reapply CI rules working.

 

Regards,

Krishna