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
praveen murugesanpraveen murugesan 

Error: Unknown property 'VisualforceArrayList.name'

Hi all,

I have facing this error for the long time.

Scenario:

Employee_Detail__c is the obj. which is having lookup field which related to User field name is User__c.

To print the user name i am using following code. But I can't save the code its saying "Error: Unknown property 'VisualforceArrayList.name'"

<apex:page standardController="Employee_Detail__c">
{!Employee_Detail__c.User__r.name}
</apex:page>

Guidance much apperciable..

Thanks.
pradeep naredlapradeep naredla
Hi, 

Can u share ur total code it is an error which will rise when u initalise a list inproperly..

Thanks,
pradeep.
kiranmutturukiranmutturu
{!Employee_Detail__c.User__r.firstname} or{!Employee_Detail__c.User__r.lastname}
Ramesh KallooriRamesh Kalloori
Hi Praveen,

The above code you have provided works fine.

Please send the full code it will be helpful to resolve the problem.

Thanks,
RAmesh
praveen murugesanpraveen murugesan
Hi,

@Pradeep this much is my total code.
@Kiran: {!Employee_Detail__c.User__r.name}
@Ramesh: for me also worked fine in personal org.

and FYI we are having two FULL copy sandbox both having same data in one org its working fine. But in another code is not saving

Thanks.