Frequent Best Practice Errors with solutions:


1)DeveloperDocumentation label should not be marked to be translated.
--->write {locked} in description of a label.

2)The relation under the extended data type (EDT) ItemId must be migrated to a table relation. Consider using the EDT relation migration tool.
--->GOTO-->>Tools-->>CodeUpgrade-->>EDT relationmigration tool.
    Click MigrateAll.

3)The relation is marked to be validated, but its referenced fields are not fully covered by a primary or alternate index on the referenced table.
--->Check

4)Field must be defined using a type.
--->Always ship a table field with the same base type as it has been shipped with before. The size of the field must be the same, or greater than it has been before.
    Each field must be defined using a type, or you will get an error.

5)The property Caption has a nondefault value @XYZ948. Expected @SYS9039.
--->Not required.

6)Only foregin key constraint are allowed  on  this table.
--->export the XPO of the Table and openwith Notepad.modify the REFERENCETYPE  NORMAL as REFERENCETYPE PKFK.

7)The Table.Field does not have a corresponding parm-method on the AxBC-class.
If you add new field in a table and getting "The Table.Field does not have a corresponding parm-method on the AxBC-class" error message, you can run following Job to fix this issue. This job will add corresponding parm-method for newly added field in a table.

static void CreateAxBCParmMethodJob(Args _args)
{
    axGenerateAxBCClass axGenerateAxBCClass;

    axGenerateAxBCClass = AxGenerateAxBCClass::newTableId(tablenum(CustTable));
    axGenerateAxBCClass.run();

}

You can find more from following link.

--------------------------------------------------------------------------------
https://msdn.microsoft.com/en-IN/library/bb530207.aspx
---------------------------------------------------------------------------------

Comments

Popular posts from this blog

x++ code to add hyperlink to a field in D365FO

x++ code to get Vendor Email Address based on Purpose in Dynamics 365 for Operations

x++ code to get Customer Address based on purpose in ax 2012