You need to sign in to do that
Don't have an account?
Melissa Driscoll 14
Visual Force Page error - VisualforceArrayList.id
Trying to bring a custom object list onto the cases that the accounts are tied to but getting this error
Error: Unknown property 'VisualforceArrayList.Id'
<apex:page standardController="Case">
<apex:dataList value="{!Case.Account}" var="a">
<b>Name:</b> <apex:outputlink value="/{!a.AE_Handoffs__r.Id}">{!a.AE_Handoffs__r.Name}</apex:outputlink> <BR><BR>
<b>Training:</b> {!!a.AE_Handoffs__r.Training__c} <BR><BR>
<b>Training Notes:</b> <td><p>{!!a.AE_Handoffs__r.Training_Notes__c}</p></td><BR><BR>
<b>Data Migration:</b> {!!a.AE_Handoffs__r.Data_Migration__c} <BR><BR>
<b>Data Migration Notes:</b> <td><p>{!!a.AE_Handoffs__r.Data_Migration_Notes__c}</p></td> <BR><BR>
<b>Integration:</b> {!!a.AE_Handoffs__r.Integration__c} <BR><BR>
<b>Integration Notes:</b> <td><p>{!!a.AE_Handoffs__r.Integration_Notes__c}</p></td>
</BR></BR>
</BR></BR>
</BR></BR>
</BR></BR>
</BR></BR>
</BR></BR>
</apex:datalist>
</apex:page>
Error: Unknown property 'VisualforceArrayList.Id'
<apex:page standardController="Case">
<apex:dataList value="{!Case.Account}" var="a">
<b>Name:</b> <apex:outputlink value="/{!a.AE_Handoffs__r.Id}">{!a.AE_Handoffs__r.Name}</apex:outputlink> <BR><BR>
<b>Training:</b> {!!a.AE_Handoffs__r.Training__c} <BR><BR>
<b>Training Notes:</b> <td><p>{!!a.AE_Handoffs__r.Training_Notes__c}</p></td><BR><BR>
<b>Data Migration:</b> {!!a.AE_Handoffs__r.Data_Migration__c} <BR><BR>
<b>Data Migration Notes:</b> <td><p>{!!a.AE_Handoffs__r.Data_Migration_Notes__c}</p></td> <BR><BR>
<b>Integration:</b> {!!a.AE_Handoffs__r.Integration__c} <BR><BR>
<b>Integration Notes:</b> <td><p>{!!a.AE_Handoffs__r.Integration_Notes__c}</p></td>
</BR></BR>
</BR></BR>
</BR></BR>
</BR></BR>
</BR></BR>
</BR></BR>
</apex:datalist>
</apex:page>
Can you check if you are referencing the right variables?
See similar posts with this error: https://developer.salesforce.com/forums/?id=906F00000008wtMIAQ
https://salesforce.stackexchange.com/questions/133272/error-unknown-property-visualforcearraylist-field1-c
https://salesforce.stackexchange.com/questions/148339/list-has-no-rows-for-assignment-and-unknown-property-visualforcearraylist-name
Thanks