# AppSourceCop Hidden AS0131
Tables with schema should not be added.
## Description
Tables with schema should not be added.
## Remarks
This rule is not enabled by default since additive changes are generally allowed.
## How to fix this diagnostic?
Revert the changes done by removing the tables and table extensions that have been added.
## Examples triggering this rule
### Example 1 - Adding a table with schema
Version 1 of the extension
```al
// No table named MyTable
```
Version 2 of the extension
```al
table 50100 MyTable
{
    // By default, the table is of type Normal

    fields
    {
        field(1; MyField; Integer) { }
    }
}
```
### Example 2 - Adding a table extension contributing to the table schema
Version 1 of the extension
```al
// No table extension for the table SomeTable
```
Version 2 of the extension
```al
tableextension 50100 MyExtension extends SomeTable
{
    fields
    {
        field(50100; MyExtField; Integer) { } // Adding a new table extension field
    }
}
```
## Examples not triggering this rule
### Example 1 - Adding a table without schema
Version 1 of the extension
```al
// No table named MyTable
```
Version 2 of the extension
```al
table 50100 MyTable
{
    TableType = Temporary; // Temporary tables don't contribute to the schema.

    fields
    {
        field(1; MyField; Integer) { }
    }
}
```
### Example 2 - Adding a table extension not contributing to the table schema
Version 1 of the extension
```al
// No table extension for the table SomeTable
```
Version 2 of the extension
```al
tableextension 50100 MyExtension extends SomeTable
{
    fields
    {
        field(50100; MyFlowField; Integer)
        {
            FieldClass = FlowField; // FlowFields don't contribute to the schema.
        }
    }

    procedure MyProcedure() // Procedures don't contribute to the schema.
    begin
    end;
}
```
## Related information
AppSourceCop Analyzer<appsourcecop>
Getting 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-as0131, 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-as0131/
