Users are unable to invoke the required script includes from pre-sensor pattern script "Handle Model and Manufacturer for HMC", resulting in CIs not being created (PRB1385164/KB0818846: Discovery of HMC servers fail with error: Running pre sensor script- Handle Model and Manufacturer for HMC failed due to: TypeError: Cannot convert null to an object)
This issue is due to the different scopes of pre-sensor script and script includes that are being invoked from the pre-sensor pattern. The pre-sensor script 'Handle Model and Manufacturer for HMC' is in the Discovery and Service Mapping Patterns scope. The Script Includes 'CI' and 'MakeAndModelJS' which are being invoked from the pre-sensor script are in global scope.
Run quick Discovery for HMC server.
This problem has been fixed. If you are able to upgrade, review the Fixed In section to determine the latest version with a permanent fix your instance can be upgraded to.
If a workaround is needed, change the scope of the required Script Includes to 'All application scopes'.