AL icon indicating copy to clipboard operation
AL copied to clipboard

Getting "Cannot build the page 0. The metadata object Page 0 was not found." as a result of page.run(50024)

Open sbuescher opened this issue 8 years ago • 3 comments

I'm testing some things with per tenant apps on Dyn365 BC using 30 days trial. On an page extension I have an action like this:

action("Simple List4") { Caption = 'Simple List'; ApplicationArea = ALL; Image = Setup; trigger OnAction() begin Page.Run(50024); end; }

by clicking on the action I'm gettin a blue page with: "Cannot build the page 0. The metadata object Page 0 was not found."

Some Background:

image

page 50024 MySimpleList4 { PageType = List; SourceTable = MySimpleTable4; UsageCategory = Lists;

layout
{
    area(content)
    {
        repeater(Control1)
        {
            field(MyField; MyField)
            {
                ApplicationArea = all;
            }
        }
    }
}

}

table 50024 MySimpleTable4 { DataClassification = ToBeClassified;

fields
{
    field(50000;MyField; Integer)
    {
        
        DataClassification = ToBeClassified;
    }
}

}

sbuescher avatar Apr 12 '18 16:04 sbuescher

switching from OnAction() trigger to RunObject = Page "MySimpleList4"; the Action isn't displayed

sbuescher avatar Apr 13 '18 12:04 sbuescher

it works on the sandbox given by docker environment given by Microsoft/bcsandbox:de

sbuescher avatar Apr 13 '18 12:04 sbuescher

ok, seems to be fixed now.

sbuescher avatar Apr 16 '18 19:04 sbuescher