Unable to insert record into table alm_hardware
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2025 02:21 AM
So, basically I was creating an ATF script where I was creating new hardware items as a part of test data creating for a test case. Below are my test steps
So, initially in the morning it was working fine but some an hour ago, it is showing this error particularly for the alm_hardware table. Although the previous steps are passing.
I have discussed with my Team as well, it seems nobody made any changes to the business rule and as per the business rule the record should trigger with following condition :
current.sys_class_name != 'alm_consumable' &&
current.sys_class_name != 'alm_license' &&
current.ci.nil() &&
current.substatus != 'pre_allocated' &&
current.model_category.cmdb_ci_class != ''
My step is satisfying all conditions but still failing. Please help to resolve this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2025 06:00 AM
@GlideFather But, technically it shouldn't exist right since everytime new sysid is getting generated. So, even if the model name is same but sys id will be different right? Any suggestions to improvise it?
