web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

The name does not exist in the current context

(5) ShareShare
ReportReport
Posted on by 2,584
I sure wish that there were better instructions somewhere on how to learn Application Language.
 
This user guide that I'm reading isn't very helpful.  Everywhere I type, there's an error.
 
The latest error comes from what I typed below.
 
The error appears for each of my fields and says, "The name does not exist in the current context."
 
How do I eliminate this error?
 
Thanks!
 
John
 
page 50100 "Radio Show List"
{
    PageType = List;
    SourceTable = "Radio Show";
 
    layout
    {
        area(Content)
        {
            repeater(group)
            {
                field("No."; "No.") { ApplicationArea = Basic; }
                field("Radio Show Type"; "Radio Show Type") { ApplicationArea = Basic; }
                field("Name"; "Name") { ApplicationArea = Basic; }
                field("Run Time"; "Run Time") { ApplicationArea = Basic; }
                field("Host Code"; "Host Code") { ApplicationArea = Basic; }
                field("Host Name"; "Host Name") { ApplicationArea = Basic; }
                field("Average Listeners"; "Average Listeners") { ApplicationArea = Basic; }
                field("Audience Share"; "Audience Share") { ApplicationArea = Basic; }
                field("Advertising Revenue"; "Advertising Revenue") { ApplicationArea = Basic; }
                field("Royalty Cost"; "Royalty Cost") { ApplicationArea = Basic; }
 
            }
        }
    }
}
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    90,466 Super User 2025 Season 2 on at
    The name does not exist in the current context
    Hi, Please add "Rec." in front of your field.
    For example, this is an update in recent years. If you don’t add it, you will be prompted that the field cannot be found.
     
    Thanks
    ZHU
     
  • Suggested answer
    Mustafa Omerbegović Profile Picture
    1,447 Super User 2025 Season 2 on at
    The name does not exist in the current context
    Hello John,
     
    The error "The name does not exist in the current context." indicates that the fields you are referencing in your Page object do not exist in the underlying SourceTable.
     
    Compile the table first and then see if the errors still exist.
     
    You can learn AL on Microsoft Learn, you can check books written by our MVPs like "Mastering Microsoft Dynamics 365 Business Central" by Stefano Demiliani and Duilio Tacconi, "Microsoft Dynamics 365 Business Central Field Guide" by Erik Hougaard, many forums like Dynamics Lab from Yun Zhu, Mibuso...follow what they post, research the internt etc
     
    Greetings

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sumit Singh Profile Picture

Sumit Singh 2,707

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,675 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,228 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans