The yellow squiggles in VS Code are not decoration.
The pain
Every compile shows warnings about code marked for removal. Someone silenced them years ago. Then a release removes the old code and the extension stops compiling.
Why it happens
Microsoft marks procedures and fields obsolete before removing them. Warnings like AL0432 are the notice period. Suppressing them just hides the deadline.
Before: Silence the warning
#pragma warning disable AL0432
Result := LegacyHelper.OldCalc(Rec);
#pragma warning restore AL0432
// Compiles today.
// Breaks in the release that
// removes OldCalc.
After: Move to the replacement now
// The obsolete reason names the
// replacement. Use it:
Result := NewHelper.Calc(Rec);
// app.json: target the new version
"application": "29.0.0.0"
The result
Zero obsolete warnings means the next release cannot surprise you. You fix them on your schedule, not Microsoft’s.
Tip: Treat warnings as errors in your build pipeline so new ones never sneak back in.
Download this teardown as a PDF
Got a Business Central problem like this? Free BC update readiness check. Senior Microsoft certified developers, and you talk to the person writing the code. Contact Dataflow Solutions.
