+ Start a Discussion
bakul.patelbakul.patel 

Field does not exist on product object

HI,
I am facing a strange problem. We have a Vendor_Vendor__c field in Product2 object which is lookup to Vendor object. When I am using that field in a tirgger, it complains that "Vendor_Vendor__c field not found in Product2 object" but I can clearly see that field being there. So, I tried to delete that field from Product2 object, but at that time it complained that it is being used in the same trigger.

It seems to be a case of oxymoron. Has anybody faced such problem earlier?
Akhil AnilAkhil Anil
Hi Bakul,

Did you double check the API name of the lookup field ?
bakul.patelbakul.patel
Yes, I did check and api name in trigger. That's the reason when I try to delete that field from Product object it tell me that it is being used in that trigger.
Amit Singh 1Amit Singh 1

Hi Bakul,

Can you paste your code and screenshot of the Produc2 Object field? Also, please check the field level security for the profile of login user. There may be a possibility that filed is not accessible for the profile.

Thanks,
Amit​