Discovery error - Cannot read property "mainCiType" from null

MMGF
Tera Contributor

I get multiple entries of the following error message in Discovery for a configuration item schedule generated from a cloud resource schedule:

 

Error in Horizontal Discovery Sensor for Horizontal Pattern: Failed to update IP on the CI, TypeError: Cannot read property "mainCiType" from null

 

What might be the issue? Where should I look to find the root cause?

An interesting point is that this does not happen when discovering from my DEV instance, only PROD.

1 REPLY 1

Community Alums
Not applicable

Hi @MMGF ,

Please follow the steps:

  1. Review the ecc_queue input payload and find the "mainCiType".
  2. Confirm the mainCiType is a table which extends one of the following tables, ViewTheSchemaMap:
    CMDB_CI_HARDWARE, CMDB_CI_LOGICAL_DATACENTER, CMDB_CI_CLOUD_LOAD_BALANCER
  3. If the mainCiType table is not extended from one of the above tables, create system property sa.host_classes set to type "string" and value equal to the mainCiType.

OR

  1. Revert MID property mid.discovery.max_ci_count_per_page back to the default value of 500.