SAP CI Application pattern failed to retrieve the Version due to unexpected value of $system_directory


Description

SAP CI Application pattern failed with the following error:
"In payload missing minimum set of input values for criterion (matching) attributes from identify rule for table [cmdb_ci_sap_sid]. Add these input values in payload item '{"className":"cmdb_ci_sap_sid","values":{"discovery_source":"ServiceNow","name":"XXX","sys_class_name":"cmdb_ci_sap_sid"}}'......"

This is because the logic on [Identification section - identification for sap ci - step 2. set variables] not able to get the proper value of $system_directory.
The regular expression in this step is designed only to handle pattern where parameter "pf=" obtained from $process.commandLine is at a certain position.

Steps to Reproduce

  1. Run discovery on host machine that contain SAP CI Applications.
  2. Observe the error message below is thrown:
    "In payload missing minimum set of input values for criterion (matching) attributes from identify rule for table [cmdb_ci_sap_sid]. Add these input values in payload item '{"className":"cmdb_ci_sap_sid","values":{"discovery_source":"ServiceNow","name":"XXX","sys_class_name":"cmdb_ci_sap_sid"}}'...."
  3. Observe that all "Set Version" logic in the pattern log are failing with error message: "Failed to retrieve remote data: Execution of command export PATH=$PATH:....... failed with status 1"

Workaround

This problem is currently under review. You can contact ServiceNow Technical Support or subscribe to this Known Error article by clicking the Subscribe button at the top right of this form to be notified when more information will become available..

If you can not wait for the future release, you can apply update set attached to this KB article (sys_remote_update_set_ba5120361b825854a35c3197cc4bcb21.xml)


Related Problem: PRB1415708