After adding a primary key to a table, you cannot compile the table object.
Resolution
This error can occur when the record size is close to the maximum value. The maximum record size in Microsoft Dynamics NAV is 8000 bytes. To resolve this issue, limit the number of primary keys.