+ Start a Discussion
Gurpreet Singh SandhuGurpreet Singh Sandhu 

VF Error for Trailhead Challenege: Display Records, Fields, and Tables


I am getting below error while submitting the Trailhead challenge for verification:
The page does not include a apex:outputField component bound to the opportunity amount

Please advise.

Thank you,

Here is the code I am submitting:

<apex:page standardController="Opportunity">
    <apex:pageBlock title="opportunities list">
        <apex:pageBlockSection title="opportunities main" >
            <apex:outputField value="{! Opportunity.Name }"/>
            <apex:outputField value="{! Opportunity.Amount }"/>
            <apex:outputField value="{! Opportunity.CloseDate }"/>
            <apex:outputField value="{! Opportunity.Account.Name }"/>

Nubes Elite Technologies Pvt. LtdNubes Elite Technologies Pvt. Ltd
Hi Gurpreet,
I tried the same code but it's not showing any error. It is saved successfully and it showed the below page.User-added image
So can you please try agin or else elaborate your query.

Thank You,
Development | Training | Consulting

Please mark this as solution if your problem is solved.
Deepali KulshresthaDeepali Kulshrestha
Hi Gurpreet,

Greetings to you!

I have gone through your query.

Please try below link for solution:

1. https://www.youtube.com/watch?v=Qmu4-ipt42A&feature=player_embedded

2. https://developer.salesforce.com/forums/?id=906F0000000BUGoIAO
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
Gurpreet Singh SandhuGurpreet Singh Sandhu
Thank you, Deepali and Nubes Elite. 
I had to contact the Salesforce support and they have fixed the issue. However, they did not mention the resolution and the root cause. Thanks again!