+ Start a Discussion

Lookup using VisualForce page

I tried to create a lookup and got the error 'Id value 005L0000001DUZ7 is not valid for the Contact standard controller'

<apex:page standardcontroller="Contact">
<apex:form >

<apex:inputField value="{!Contact.Account}"/>


any help please.
Vamsi KrishnaVamsi Krishna
the ID value 005L0000001DUZ7 you are passing is an User Id and not a Contact Id.. usualy Contact Id starts with 003...
if you replace the id value in the url with an actual contact id, it should work..

check this article for all object id prefixes..