Hardware Asset Records are creating without serial number field which is mandatory field

imran sk
Tera Contributor

Records are creating in alm_hardware table without serial number . while the serial number field is mandatory but still it is creating records without filling the serial number mandatory field .

What could be the possible ways of creating hardware asset records without filling the serial number mandatory field .

How mandatory field is getting bypass while creating hardware asset records

 

thanks in advance 

5 REPLIES 5

Yousaf
Giga Sage

Hi Shaik,

There might be this line in any of client script which can help bypass mandatory field

g_form.checkMandatory = false;

 

Mark Correct or Helpful if it helps.


***Mark Correct or Helpful if it helps.***

Nikita Kale
Giga Guru

Hi 

Can you check if data is populating in the 'alm_hardware' table via an import set? Also check if its corresponding transform map has the enforce mandatory field as 'No'.

find_real_file.png

More on enforce mandatory fields : Enforce Mandatory Fields | ServiceNow Developers

Let me know if this helps.

when the ""Enforce mandatory fields set to All Fields or only mapped fields"" still it is skipping the serial number Mandatory field.

what could be the possibility.

Could you check if there is a UI policy written on the field? If there is any with serial number mandatory false it would override the client script. Also, see the 'created by' of those records. Check if they were created by any particular user.