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
SFDC_sadasSFDC_sadas 

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}"/>

</apex:form>
</apex:page>

any help please.
Vamsi KrishnaVamsi Krishna
Hi,
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..
http://help.salesforce.com/apex/HTViewSolution?id=000005995&language=en_US