Edit

Compiler Error AL0297

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 application object identifier '{0}' is not valid. It must be within the allowed ranges '{1}'.

Description

An application object's ID must be within the idRange specified in the manifest.

How to fix this diagnostic?

This error means an object's ID falls outside the ranges declared in the idRanges setting of your app.json. Every object must use an ID within one of the allowed ranges.

To fix it, either change the object ID to fall within an existing range, or extend the range in app.json. For per-tenant extensions, use IDs in the 5000099999 range:

"idRanges": [
  {
    "from": 50100,
    "to": 50149
  }
]

Then give the object an ID within that range:

table 50100 "Expense Report"
{
    // ...
}

Get Started with AL
Developing Extensions