# 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 ../devenv-object-ranges.
## How to fix this diagnostic?
You must change the ID of the object or table field validated to use an ID within the range 50,000-99,999.
## Code example triggering the rule
```al
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
```al
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<pertenantextensioncop>
Get 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/analyzers/pertenantextensioncop-pte0001, 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/analyzers/pertenantextensioncop-pte0001/
