function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sundhar.mks1.3962649227519546E12sundhar.mks1.3962649227519546E12 

Error: Expression value does not resolve to a field

Hi,

I am tried to create custom visualforce page for pricebookEntry, But When trying to insert a standard field in a visual force page i am getting following error message is:
Expression value does not resolve to a field
Error is in expression '{!PricebookEntry.Product2}' in component <apex:inputField> in page pricebookentry_edit


How to solve this?

Thanks.
Best Answer chosen by sundhar.mks1.3962649227519546E12
ManojjenaManojjena
Hey Sundhar,

Which field you want to display from product ? If you want to display Name of product then try with "{!PricebookEntry.Product2.Name}" .