AppSourceCop Error AS0059
Reserved database tables are read-only in a multi-tenant environment
Description
Application database tables and reserved application tables should be used only as temporary tables in a multi-tenant environment. Writing to these tables can lead to runtime errors or unexpected behavior.
Remarks
This error occurs when an attempt is made to write to reserved database tables in a multi-tenant environment. In such environments, application database tables and reserved application tables should only be used as temporary tables. Writing to these tables can lead to runtime errors or unexpected behavior.
How to fix this diagnostic?
To resolve this error, you need to ensure that reserved database tables are only used as temporary tables in a multi-tenant environment. Here are the steps:
- Locate the code where a write operation is being attempted on a reserved database table.
- Change the code to use the table as a temporary table instead of writing directly to it.
Related information
AppSourceCop Analyzer
Get Started with AL
Developing Extensions