{"title":"AppSourceCop Error AS0016","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/analyzers/appsourcecop-as0016/","by":"JOP-AL","license":"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-as0016, 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.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/analyzers/appsourcecop-as0016","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Fields of field class 'Normal' must use the DataClassification property and its value must be different from ToBeClassified.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":1,"title":"AppSourceCop Error AS0016","slug":"appsourcecop-error-as0016","at":0,"chars":2164},{"level":2,"title":"Description","slug":"description","at":154,"chars":238},{"level":2,"title":"Remarks","slug":"remarks","at":392,"chars":379},{"level":2,"title":"How to fix this diagnostic?","slug":"how-to-fix-this-diagnostic","at":771,"chars":250},{"level":2,"title":"Code examples triggering the rule","slug":"code-examples-triggering-the-rule","at":1021,"chars":642},{"level":3,"title":"Example 1 - No data classification specified","slug":"example-1---no-data-classification-specified","at":1058,"chars":264},{"level":3,"title":"Example 2 - Data classification has to be classified","slug":"example-2---data-classification-has-to-be-classified","at":1322,"chars":341},{"level":2,"title":"Code example not triggering the rule","slug":"code-example-not-triggering-the-rule","at":1663,"chars":354},{"level":2,"title":"Related information","slug":"related-information","at":2017,"chars":147}],"text":"# AppSourceCop Error AS0016\nFields of field class 'Normal' must use the DataClassification property and its value should be different from ToBeClassified\n## Description\nFields of field class 'Normal' must use the DataClassification property and its value must be different from ToBeClassified. FlowFields and FlowFilter fields are automatically set to the SystemMetadata data classification.\n## Remarks\nFor more information about data classification, see the documentation on the DataClassification<../../developer> property and on Classifying Data in Dynamics 365<../../developer>.\n> NOTE\n> Tables and fields marked as Obsolete Removed<../properties/devenv-obsoletestate-property> are and not deleted from the database. This is why they are\nalso validated by this rule.\n## How to fix this diagnostic?\nTo fix the diagnostics reported you must set the DataClassification<../../developer> property on the table fields in your extension following the guidelines defined in Classifying Data in Dynamics 365<../../developer>.\n## Code examples triggering the rule\n### Example 1 - No data classification specified\n```al\ntable 50100 MyTable\n{\n    fields\n    {\n        field(50100; MyField; Text[50]) { }\n    }\n}\n```\nThe following example triggers the rule because the field MyField does not have any DataClassification specified.\n### Example 2 - Data classification has to be classified\n```al\ntable 50100 MyTable\n{\n    fields\n    {\n        field(50100; MyField; Text[50])\n        {\n            DataClassification = ToBeClassified;\n        }\n    }\n}\n```\nThe following example triggers the rule because the data classification for field MyField still has to be classified.\n## Code example not triggering the rule\n```al\ntable 50100 MyTable\n{\n    fields\n    {\n        field(50100; MyField; Text[50])\n        {\n            DataClassification = CustomerContent;\n        }\n    }\n}\n```\nThe following example does not trigger the rule because the data classification for field MyField still has a valid data classification specified.\n## Related information\nAppSourceCop Analyzer<appsourcecop>\nGet Started with AL<../devenv-get-started>\nDeveloping Extensions<../devenv-dev-overview>"}