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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Appsource validation fails for BC27 because a chartpart is removed

(6) ShareShare
ReportReport
Posted on by 72

Hello, 

We have an app on appsource that contains 3 pages with chartparts, as shown below 

chartpart("270-01"; "270-01")
{
  Visible = false;
  ApplicationArea = All;

When we try to upload our app in appsource then microsoft validates the new .app for both versions BC26 and BC27.
When we remove the chartparts from the page then during appsource validation we get following error. 

The chartpart with name '272-01' defined in Page 'XXX' was found in the previous version, 
but is missing in the current extension. This will break dependent extensions. 

If we dont remove it then we get appsource validation failure because chartparts do not exist in BC27.

I tried following approach

#if BC26
     chartpart("270-01"; "270-01")
     {
         ApplicationArea = All;
         Visible = false;
         ObsoleteState = Pending;
     }
#endif
,but still get following issue during appsource validation for BC27.
The chartpart with name 'XXX' defined in Page 'YYY' was found in the previous version, but is missing in the current extension. This will break dependent extensions.
 
Please mind that in BC27 chartparts are totally removed.
 
Does anyone know a way to fix this?
Thanks in advance,
I have the same question (0)
  • Verified answer
    Pallavi Phade Profile Picture
    5,639 Super User 2026 Season 1 on at
    Namaste @mbazioss
     
    Can you fix as per below image . Can you make as normal part instead of chartpart . 
     
     
     
     
    Below link for fixing the issue . I refered this blog 
     
    Below link for reference - where obselete property can be appplied 
     
     
    Please verify the answer if it helped .
     
    Regards 
    Pallavi Phade
     
  • Suggested answer
    YUN ZHU Profile Picture
    101,250 Super User 2026 Season 1 on at
    Hi, hope the following helps as well.
    Best practices for deprecation of AL code
     
    Thanks
    ZHU
  • Suggested answer
    Rishabh Kanaskar Profile Picture
    6,227 Super User 2026 Season 1 on at
    Hi,
     
    In BC27, chartparts were completely removed, but AppSource validation still checks for backward compatibility. There’s no way to “conditionally remove” them for AppSource; using #if BC26 only prevents compilation, but the previous version’s metadata still exists in the older app, triggering the validation error.
     
    Recommended approach:
    Mark the chartpart as obsolete instead of removing it.
    Use:
     
    chartpart("270-01"; "270-01")
    {
        ApplicationArea = All;
        Visible = false;
        ObsoleteState = Removed;
        ObsoleteReason = 'Removed in BC27';
    }

    This keeps the object in the extension for AppSource validation but makes it non-functional in BC27.
     
    Direct deletion isn’t allowed if it existed in the previous published version. Obsoleting is the supported method for BC27 AppSource compatibility.
     
    Thanks
    Rishabh

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,140 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,362 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,216

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans