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

Issue in AL Validation for version Business Central v27

(1) ShareShare
ReportReport
Posted on by 26

Hi Everyone,

 

I am stuck with an issue in which we need to publish the Business Central code to v27 but two procedures in an interface are not obsoleted. I have already tried preprocessor symbols, but the issue still persists. Even if I remove the procedures and publish the app file it gives me AL validation error. Can anyone help me what can I do to make the app compatible for v27 without failing AL validations.

 

The only way to remove a global procedure which i know is obsoleting in the current version and removing in the next version which is not a solution in my case because i want to remove the procedures in the current version.

I have the same question (0)
  • Suggested answer
    Nimsara Jayathilaka. Profile Picture
    1,714 on at
    Issue in AL Validation for version Business Central v27
    Hi
     
    1 Mark the two global procedures as [Obsolete] with reason and tag '27.0'.
    2 Surround their code with #if not CLEAN27 ... #endif conditional compilation.
    3 Add "preprocessorSymbols": ["CLEAN27"] to your app.json file.
    4 Rebuild and publish your app targeting Business Central v27.
    mark those procedures as obsolete using the [Obsolete] attribute along with a version tag, and then use conditional compilation with a preprocessor symbol to exclude them in version 27. This lets the procedures remain in the code for backward compatibility but safely omitted during compilation for v27, avoiding validation failures. Simply deleting the procedures causes errors because AL requires them to be first obsoleted before removal, ensuring smooth version transitions. Adding a preprocessor symbol in your app manifest and using it to conditionally exclude obsolete procedures is the verified, recommended solution to maintain AL validation compliance when removing global procedures in the current version.
     
    Follow this steps. 
     
    Thanks
    Nimsara
  • Suggested answer
    Nimsara Jayathilaka. Profile Picture
    1,714 on at
    Issue in AL Validation for version Business Central v27

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 2,846

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 2,683 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 2,214 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans