DataClassification redundancy
Properties
LC0019
Warning
Design
Code Fix
Ignore Obsolete
The DataClassification property set on a table automatically applies to all its fields. When individual fields repeat the same value that is already defined at the table level, the declaration is redundant.
If the table-level classification later changes — say from CustomerContent to EndUserIdentifiableInformation — every field that still repeats the old value silently keeps it. The table says one thing, the fields say another, and nothing flags the mismatch at compile time.
Example
The following field redundantly specifies the same DataClassification as the table:
table 50100 MyTable
{
DataClassification = CustomerContent;
fields
{
field(1; MyField; Integer)
{
DataClassification = CustomerContent; // DataClassification redundancy [LC0019]
}
}
}To fix this, remove the redundant property from the field:
table 50100 MyTable
{
DataClassification = CustomerContent;
fields
{
field(1; MyField; Integer)
{
}
}
}