# Compiler Error AL0926
> NOTE
> The AL diagnostics topics are in preview. If you have input for this topic, we'd love to hear from you. Use our GitHub repo to create a PR and add content to this topic by going to https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb. To read about contributing, see Contribute to the Help<../../help/contributor-guide#contributing>. Thanks!
The '{0}' section is not valid here. In a {1} object, the expected section order is: {2}. Metadata sections must appear before var declarations, triggers, and procedures.
## Description
A metadata section keyword appears after triggers, procedures, or variable declarations within an AL object. Each object type has a strict ordering for its metadata sections (e.g., tables require fields before keys before fieldgroups). Sections must also appear before any var declarations, triggers, or procedures.
## Related information
Getting started with AL<../devenv-get-started>
Developing extensions<../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/diagnostics/diagnostic-al926, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/diagnostics/diagnostic-al926/
