Hardware Asset Records are creating without serial number field which is mandatory field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 01:53 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 02:17 AM
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.***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 02:22 AM
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'.
More on enforce mandatory fields : Enforce Mandatory Fields | ServiceNow Developers
Let me know if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 04:57 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2022 07:56 AM
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.