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
Thaddeus Ward 2Thaddeus Ward 2 

'ProfileSkillUser' is not a valid child relationship name for entity Skill

I am trying to set up a very simple VF page to see Profile Skills, but I am getting this error message "'ProfileSkillUser' is not a valid child relationship name for entity Skill"

Ideas?   Code below
<apex:page standardController="User" sidebar="false" showHeader="false">
    <apex:pageBlock >
        <apex:pageBlockSection title="Current Skills">
        <apex:relatedList list="ProfileSkillUser" />
        
        </apex:pageBlockSection>
    </apex:pageBlock>
 

</apex:page>


 
NagendraNagendra (Salesforce Developers) 
Hi Thaddeus,

Please check with below code which works fine for me.
<apex:page standardController="User" sidebar="false" showHeader="false">
    <apex:pageBlock >
        <apex:pageBlockSection title="Current Skills">
        <apex:relatedList list="UserProfileSkillChildren" />
        
        </apex:pageBlockSection>
    </apex:pageBlock>
 

</apex:page>
The above error is displayed because the child relationship name which you are referring in the related list is not the valid one.For every object, there will be a valid child relationship name.The child relationship name for the profile skill user is UserProfileSkillChildren.

Please check with below link to understand the child relationship concepts.
Please mark this as solved if the information helps.

Regards,
Nagendra.