22 views

Description

Sensor error when processing Windows - Installed Software. ReferenceError: "related_data" is not defined

Steps to Reproduce

 

Run discovery to a Windows PC that has Adobe Acrobat installed

Workaround

Navigate to:
Discovery Definition > Probes > open "Windows - Installed Software" > under "Post processor script", change below script
 
from:
if (/Acrobat/.test(displayName) && !gs.nil(uninstallString) && (uninstallString.indexOf("{") >= 0)&&(uninstallString.indexOf("}") >= 0)) {
var editionString = uninstallString.split("{")[1];
editionString = editionString.split("}")[0];
if (!gs.nil(editionString)) {
var splitEdition = editionString.split("-");
if (splitEdition.length >= 4)
softwareList[uniqueName].edition = splitEdition[3];
}
}
 
to:
if (/Acrobat/.test(displayName) && !JSUtil.nil(uninstallString) && (uninstallString.indexOf("{") >= 0)&&(uninstallString.indexOf("}") >= 0)) {
var editionString = uninstallString.split("{")[1];
editionString = editionString.split("}")[0];
if (!JSUtil.nil(editionString)) {
var splitEdition = editionString.split("-");
if (splitEdition.length >= 4)
softwareList[uniqueName].edition = splitEdition[3];
}
}

Related Problem: PRB1304085

Seen In

There is no data to report.

Intended Fix Version

Kingston Patch 11
Madrid

Fixed In

London

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-10-12 03:33:23
Published:2018-10-12