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

Notifications

Announcements

No record found.

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 3,238
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)
  • Suggested answer
    Mustafa Omerbegović Profile Picture
    1,473 Super User 2025 Season 2 on at
    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
  • Verified answer
    YUN ZHU Profile Picture
    95,748 Super User 2025 Season 2 on at
    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
     

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans