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
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.