+ Start a Discussion
svidyansvidyan 

VF error: <Child list name> is not a valid child relationship name for entity <Parent name>

Hi,

 

I am trying to display the relatedchild list by  <apex:relatedList list="Credit_Cards" />

I keep getting the error "'Credit_Cards' is not a valid child relationship name for entity Person".

 When I checked on the custom field relationship info for the master-detail relationship, it showed the the Child Relationship Name as "Credit_Cards".

I'm not  sure why the error. Is there an API name for the relationship which I should be using?

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
WizradWizrad

Probably just wants Credit_Cards__r

All Answers

WizradWizrad

Probably just wants Credit_Cards__r

This was selected as the best answer
svidyansvidyan

It works, thanks.