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
Chetna AgrawalChetna Agrawal 

NotesAndAttachment' is not a valid child relationship name for entity Lead

<apex:page standardController="Lead">
    <apex:pageBlock >
    You're looking at some related lists for {!}:

    <apex:relatedList subject="{!Lead}" list="NotesAndAttachments" />

    <apex:relatedList list="Contacts">
        <apex:facet name="header">Titles can be overriden with facets</apex:facet>

    <apex:relatedList list="Cases" title="Or you can keep the image, but change the text" />
Steve FindlaySteve Findlay
I was able to reproduce this issue if the controller and vf page are on different API versions. Confirm that they are on the same correct API version.