# AppSourceCop Warning AS0086
Fields must not increase in length
## Description
Increasing the length of a field is not allowed as it might break the runtime behavior of dependent extensions referencing it.
## Remarks
The validation of the length of table fields was previously done with appsourcecop-as0004 and has now been split into two different rules:
 appsourcecop-as0080 - which validates against decreasing the length of fields
 appsourcecop-as0086 - which validates against increasing the length of fields
## How to fix this diagnostic?
Reverting the change will fix this diagnostic. If increasing the length of the field is required, the recommended approach is to mark the field as Obsolete Pending<../properties/devenv-obsoletestate-property>, and in a later app version, remove that state again, and just increase the field length and remove the `Obsolete Pending` state.
## Code example triggering the rule
Version 1.0 of the extension:
```al
table 50100 MyTable
{
    fields
    {
        field(50100; MyField; Text[50]) { }
    }
}
```
Version 2.0 of the extension:
```al
table 50100 MyTable
{
    fields
    {
        field(50100; MyField; Text[150]) { }
    }
}
```
In version 2.0, the type of the field MyField has changed from `Text[50]` to `Text[150]`. If a dependent extension uses this field, this can lead to runtime exceptions. For instance, if it assigns it to a variable of type `Text[50]`.
## 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-as0086, 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-as0086/
