Best Practice Error
Only foreign key constraints are allowed on this table
How to rectify this best practice error.
For Custom Table
- Export table to XPO
- Edit it with text editor, and change
- from: EnforceFKRelation 1
- to: EnforceFKRelation 0
- delete table in AX, synchronize
- import xpo file
For Standard Table
Some custom relation table may have some error on standard table, we can fix this best practice error using same trick as above, but for this one lets check on XPO file and change REFERENCETYPE value.
- Export table to XPO
- Edit it with text editor, and change
- from: REFERENCETYPE NORMAL
- to: REFERENCETYPE PKFK
- delete table in AX, synchronize
- import xpo file
.
