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...
Suggested Answer

Cannot find table XXX. The metadata object Table XXX was not found. In Business Central SaaS Sandbox environment.

(0) ShareShare
ReportReport
Posted on by 80

Hi,

I am working through “Work with tables in Dynamics 365 Business Central” and at this point (docs.microsoft.com/.../11-exercise).

I am working in a SANDBOX environment and using VSC. Symbols have downloaded and there are no Problem shown in VSC.

I am receiving at error:
Something went wrong.
Cannot find table 50100. The metadata object Table 50100 was not found.

2538.error1.JPG

It seems that there is also the need to create a page to display the table (community.dynamics.com/.../metadata-object-table-xxxx-not-found-bc-saas) , but this is not listed in the learning module and before I get too far on a wrong track would appreciate any feedback toward solution. See files below.

Thanks.

Course.Table.al

table 50100 CompanyCourse
{
    DataClassification = CustomerContent;
    Caption = 'Course';

    fields
    {
        field(10; "Code"; Code[20])
        {
            DataClassification = CustomerContent;
            Caption = 'Code';
        }
        field(20; "Name"; Text[30])
        {
            DataClassification = CustomerContent;
            Caption = 'Name';
        }
        field(30; "Description"; Text[50])
        {
            DataClassification = CustomerContent;
            Caption = 'Description';
        }
        field(40; "Type"; Option)
        {
            OptionMembers = "Instructor Led","e-Learning","Remote Training";
            OptionCaption = 'Instructor Led, e-Learning, Remote Training';
            DataClassification = CustomerContent;
        }
        field(50; "Duration"; Decimal)
        {
            DataClassification = CustomerContent;
            Caption = 'Duration';
        }
        field(60; "Price"; Decimal)
        {
            DataClassification = CustomerContent;
            Caption = 'Price';
        }
        field(70; "Active"; Boolean)
        {
            DataClassification = CustomerContent;
            Caption = 'Active';
        }
        field(80; "Difficulty"; Integer)
        {
            DataClassification = CustomerContent;
            Caption = 'Difficulty';
        }
        field(90; "Passing Rate"; Integer)
        {
            DataClassification = CustomerContent;
            Caption = 'Passing Rate';
        }
        field(100; "Instructor Code"; Code[20])
        {
            DataClassification = CustomerContent;
            Caption = 'Instructor Code';
            TableRelation = Resource where(Type = const(Person));
        }
    }

    keys
    {
        key(PK; "Code")
        {
            Clustered = true;
        }
        key(key1; "Instructor Code")
        {
            Clustered = false;
        }
        key(key2; "Type")
        {
            Clustered = false;
        }
    }
}



app.json

{
  "id""XYZ",
  "name""CourseMgmt1",
  "publisher""Company Inc",
  "version""1.0.0.0",
  "brief""",
  "description""",
  "privacyStatement""",
  "EULA""",
  "help""",
  "url""",
  "logo""",
  "dependencies": [],
  "screenshots": [],
  "platform""17.0.0.0",
  "application""17.0.16993.0",
  "idRanges": [
    {
      "from"50100,
      "to"50149
    }
  ],
  "contextSensitiveHelpUrl""">CourseMgmt1.com/.../",
  "showMyCode"true,
  "runtime""6.0"
}



launch.json

{
    "version""0.2.0",
    "configurations": [
        {
            "name""Microsoft cloud sandbox",
            "request""launch",
            "type""al",
            "environmentType""Sandbox",
            "environmentName""TEST-SANDBOX",
            "startupObjectId"50100,
            "startupObjectType""Table",
            "breakOnError"true,
            "launchBrowser"true,
            "enableLongRunningSqlStatements"true,
            "enableSqlInformationDebugger"true
        }
    ]
}
I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    on at

    Indeed there must be a page with that number. Just create page 50100 and it will work as expected.

  • Andy365 Profile Picture
    80 on at

    Hi Duilio,

    Thanks for the feedback. That did not work, although I understand why it should.

    After experimenting with other MS online resources, I am looking for a more comprehensive foundation. Found your co-authored (with Stefano Demiliani) book: "Mastering Microsoft Dynamics 365 Business Central: Discover Extension Development Best Practices, Build Advanced ERP Integrations, and Use DevOps Tools" - will give that a try.

    Best,

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,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans