Edit

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 here. To read about contributing, see Contribute to the Help. 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.

Getting started with AL
Developing extensions