DocType {RandomName} not found

I am started getting “DocType Delivery-Challan Item Not Found” error even though I dont have any doctype called “Delivery-Challan Item” although I have “Delivery-Challan” and “Delivery-Challan-Details” doctypes.

I was not getting this error before it started appearing after I have added one simple condition

I have checked my custom .py files every spelling is correct.

Please help!!!

Please share the code from this error generating