Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Unable to insert record into table alm_hardware

SangyM
Tera Contributor

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

SangyM_1-1752830173859.png

 

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.

SangyM_2-1752830311437.png

 

SangyM_0-1752830134455.png

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.

5 REPLIES 5

@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?