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
Emilie WailleEmilie Waille 

Challenge Not yet complete... here's what's wrong: Could not find a Lightning Record Page named 'Account Record Page'

Hi,

On the module : Quick Start: Lightning Components - Create a Lightning Component, I have this message and i can't complete the challenge.
But i follow all the module on 2 differents org but i still have the same problem.

If someone had this probleme before and resolved it, can you help me please.

Thank you
SandhyaSandhya (Salesforce Developers) 
Hi,

Check your code with below one.
 
<aura:component controller="MyContactListController" implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
<aura:attribute name="recordId" type="Id" />
<aura:attribute name="Account" type="Account" />
<aura:attribute name="Contacts" type="Contact" />
<aura:attribute name="Columns" type="List" />

<force:recordData aura:id="accountRecord"
                  recordId="{!v.recordId}"
                  targetFields="{!v.Account}"
                  layoutType="FULL"
                  />

<lightning:card iconName="standard:contact" title="{! 'Contact List for ' + v.Account.Name}">
    <!-- Contact list goes here -->
</lightning:card>

</aura:component>
 
public class MyContactListController {
    @AuraEnabled
public static List<Contact> getContacts(Id recordId) {
   return [Select Id, FirstName, LastName, Email, Phone From Contact Where AccountId = :recordId];
}

}

Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Best Regards
Sandhya
 
Emilie WailleEmilie Waille
Hi,

Thank you for your answer.

Unfortunately it doesn't work.
My code was the same but when i want to complete the challenge, i still have this message : 
"Challenge Not yet complete... here's what's wrong: 
Could not find a Lightning Record Page named 'Account Record Page'."

Thank you for your help.
Emilie
Fabio.SuzukiFabio.Suzuki
Hey,


Initially I had the same problem. Check that when you add the component the page's label is 'Account Record Page'.

o/
Alex AguilarAlex Aguilar
Hi,

Could you tell me where is the page's label?

Thank you for your help.
Małgorzata RadymskaMałgorzata Radymska
@Alex please look at my screen shot
User-added image
Tim Ning 2Tim Ning 2
@Małgorzata Radymska
Thanks for your reply. It did work. It seems a stipid and wired problem........