Required attribute install_status is missing for CI Type cmdb_ci_cloud_service_account

Deepanshu Grov1
Tera Contributor

Helloes...

I am trying to configure the Azure Cloud discovery schedule, however, getting following error: 

Required attribute install_status is missing for CI Type cmdb_ci_cloud_service_account

The fact is that this attribute 'install_status' is available in the CI class hierarchy.  

 

Thanks

Deepanshu Grover

1 REPLY 1

CMDB Whisperer
Mega Sage
Mega Sage

What this message is saying is that the install_status field is listed as mandatory, either on your base CI class or as a dictionary override on some subclass.  And, if you are getting the error during discovery, that means that your install_status field does not have a Default value (or again, some dictionary override is setting that default to null).  Because you are trying to populate a CI via the IRE using Discovery, it is failing to create or update the CI because by default the IRE enforces the mandatory field, so that data has to be part of your incoming payload.  Typically install_status is not mandatory, and typically it is not part of the incoming payload.

Options:

  1. You could use the system-wide setting to tell IRE to ignore mandatory fields.  This might seem like a good approach, but it is not recommended.
  2. You could instead remove the mandatory flag (or the override for mandatory) so that install_status is no longer required.  Along with this, you chould change the choice list so that it does not allow "None" and also change the Default value to an appropriate value.  Null status shouldn't be a thing.  That's like having no weather!

Option 2 is my recommendation.  It is best practice not to have any required fields on CIs.  Rather, if you need to enforce a field during data entry, enforce it through some process control like a catalog item, or through a UI Policy or Client Script on the CI form, but do not make it mandatory at the database level.


The opinions expressed here are the opinions of the author, and are not endorsed by ServiceNow or any other employer, company, or entity.