Machine filter on Microsoft TVM integration is causing errors on the logs during Machines Vulnerabilities TransformIssue After following the steps on KB1573367 to exclude processing of VITs for certain CIs for Vulnerability Response integration with Microsoft threat and Vulnerability Management (TVM), the below errors are observed on the logs: SEVERE *** ERROR *** sn_vul_msft_tvm (MicrosoftTVMMachineVulnProcessor): Microsoft TVM Machines Vulnerabilities Transform : could not find the record(s) with the Machine Id(s) : Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Zurich, Yokohama Cause<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } This is a known behavioural limitation of the Microsoft TVM integration. The machine_filter parameter controls CI ingestion only — it filters which machines are imported into ServiceNow as discovered items. However, the Microsoft Defender/TVM API still returns vulnerability records for all machines, including those excluded by the filter.When the Machines Vulnerabilities Transform subsequently attempts to link these vulnerability records to machine entries in the staging table, it cannot find matching Machine IDs for the excluded machines, resulting in the logged errors. So, the machine filter scopes CI import, but does not suppress the corresponding vulnerability data returned by the API. Resolution<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } The recommended approach, as documented in KB1573367, is to add an onBefore transform script to the Microsoft TVM Machines Vulnerabilities Transform map to silently skip vulnerability records for machines that were not imported. This prevents the transform from attempting to process records with no corresponding machine entry, eliminating the errors.Please navigate to System Import Sets > Transform Maps and search for Microsoft TVM Machines Vulnerabilities Transform. Add or modify the onBefore script as follows:Option 1 — Filter by Machine ID presence in the staging table:(function runTransformScript(source, map, log, target) {ignore = true;var allowedGroups = gs.getProperty('sn_vul.tvm.allowed_rbac_groups', '').split(',');if (allowedGroups.indexOf(source.u_rbacgroupname + '') > -1) {sn_vul_msft_tvm.processor.processRecord(source);}})(source, map, log, target);Option 2 — Filter by RBAC group name:(function runTransformScript(source, map, log, target) {ignore = true;if (source.u_rbacgroupname == "YourGroup1" || source.u_rbacgroupname == "YourGroup2") {sn_vul_msft_tvm.processor.processRecord(source);}})(source, map, log, target);Replace YourGroup1 / YourGroup2 with your actual RBAC group names from Defender.Option 3 — Use a system property for maintainability:Create a system property (e.g. sn_vul.tvm.allowed_rbac_groups) containing a comma-separated list of your allowed RBAC group names, then reference it in the transform script:(function runTransformScript(source, map, log, target) {ignore = true;var machineGr = new GlideRecord('sn_vul_msft_tvm_machines_import');machineGr.addQuery('u_id', source.u_machine_id);machineGr.query();if (machineGr.next()) {ignore = false;sn_vul_msft_tvm.processor.processRecord(source);}// else: silently skip - machine was filtered out})(source, map, log, target);Please note that on customisations, any modifications will need to be maintained going forward, as plugin updates may overwrite them, so it is strongly recommended to document your modifications in a comment block within the script, use a system property rather than hardcoded values where possible, test in a sub-production instance before applying to production, and review the script after each Microsoft TVM plugin upgrade.