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

Community site session details

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

Appsource validation fails for BC27 because a chartpart is removed

(3) ShareShare
ReportReport
Posted on by 35

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)
  • Suggested answer
    YUN ZHU Profile Picture
    90,831 Super User 2025 Season 2 on at
    Appsource validation fails for BC27 because a chartpart is removed
    Hi, hope the following helps as well.
    Best practices for deprecation of AL code
     
    Thanks
    ZHU
  • Suggested answer
    Pallavi Phade Profile Picture
    842 on at
    Appsource validation fails for BC27 because a chartpart is removed
    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
     

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sumit Singh Profile Picture

Sumit Singh 3,012

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,682 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,328 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans