PerTenantExtensionCop Error PTE0001
Object ID must be in free range.
Description
Object ID must be in free range.
Remarks
This rule validates that all the object IDs defined in your extension are within range 50,000-99,999 that is allocated for per-tenant extensions. For more information about the ID ranges for extensions, see Object Ranges.
How to fix this diagnostic?
You must change the ID of the object or table field validated in order to use an ID within the range 50,000-99,999.
Code example triggering the rule
codeunit 10 MyCodeunit
{
// Business logic
}
The codeunit MyCodeunit
has the ID 10
which is not valid because it is outside the allowed range.
Code examples not triggering the rule
codeunit 50100 MyCodeunit
{
// Business logic
}
The codeunit MyCodeunit
has the 50100 10
which is valid because it is within the allowed range.
Related information
PerTenantExtensionCop Analyzer
Get Started with AL
Developing Extensions