# AppSourceCop Error AS0005
Fields must not change name
## Description
Fields must not change name; their names are case-sensitive. This might break the upgrade of existing installations and dependent extensions.
## Examples of non-valid name changes
### Example 1 - Rename field
Version 1.0 of the app:
```al
table 50 MyTable
{
    fields
    {
        field(1; Identifier; Integer) { }
    }
}
```
Version 2.0 of the app:
```al
table 50 MyTable
{
    fields
    {
        field(1; Id; Integer) { }
    }
}
```
The field Identifier was renamed to Id, this is not allowed and will trigger this rule.
### Example 2 - Change casing
Version 1.0 of the app:
```al
table 50 MyTable
{
    fields
    {
        field(1; Id; Integer) { }
    }
}
```
Version 2.0 of the app:
```al
table 50 MyTable
{
    fields
    {
        field(1; ID; Integer) { }
    }
}
```
The field Id had its casing changed to ID, this is not allowed and will trigger this rule.
### Example 3 - Rename currently obsolete field
Version 1.0 of the app:
```al
table 50 MyTable
{
    fields
    {
        field(10; "Cust. Rep."; Text[40])
        {
            ObsoleteState = Pending;
        }
    }
}
```
Version 2.0 of the app:
```al
table 50 MyTable
{
    fields
    {
        field(10; "Alt. Name"; Text[40])
        {
            ObsoleteState = Pending;
        }
    }
}
```
The field `Cust. Rep.` was renamed to `Alt. Name`. It is not allowed to change the name of a field if it is obsolete in both the previous and the new version, because the field is still part of the extension's API.
> NOTE
> This rule validates all fields independently of their Accessibility or ObsoleteState, because they are used when synchronizing the schema defined in the extension to the database.
## Related information
AppSourceCop Analyzer<appsourcecop>
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/appsourcecop-as0005, 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/appsourcecop-as0005/
