Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing AL0185 for page parts #7969

Open
mrucinskinav24 opened this issue Feb 13, 2025 · 1 comment
Open

Missing AL0185 for page parts #7969

mrucinskinav24 opened this issue Feb 13, 2025 · 1 comment

Comments

@mrucinskinav24
Copy link

mrucinskinav24 commented Feb 13, 2025

1. Describe the bug
It looks like rule AL0185 (or any obsolete rule) is not triggered for obsoleted part pages. We received mail from BC that some of our extensions are not compatible with BC 26.0.30068.0.
It points to rule AL0185 "Role Center/Manufacturing/ManufacturingRC.Page.al (42,32) - Error AL0185: Page 'Power BI Report Spinner Part' is missing" but we do not see this in code.

2. To Reproduce
Here is example AL code with RoleCenter page:

page 50100 "ABC Warehouse RC"
{
    PageType = RoleCenter;
    Caption = 'Warehouse';
    Extensible = false;
    ApplicationArea = Basic, Suite;
    layout
    {
        area(RoleCenter)
        {
            part(PowerBiPart1; "Power BI Report Spinner Part")
            { }
        }
    }
}

3. Expected behavior
Part "PowerBiPart1" should give warning AL0185 because it is obsoleted:
Image

And it has been for quite some time. Other obsoleted elements like EventPublishers works fine, we see other AL0185 warnings.

4. Actual behavior
No warnings. We only find out about this obsolete page now when it is completely removed in BC26 and we received an email notification about problem ????
When we reference same page as variable it works fine:
Image

5. Versions:

  • AL Language: 14.2.1249978
  • Visual Studio Code:
  • Business Central: 25.2.27733.29849

Internal work item: AB#565734

@NKarolak
Copy link

Then you are missing AL0432 instead of AL0185 ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants