Recently came across a nice and simple functional article.
http://jamesandthegiantaxproject.wordpress.com/ax-quick-reference-shortcuts
http://jamesandthegiantaxproject.wordpress.com/ax-quick-reference-shortcuts
Results. Record ('XXX') . A record with RecId 0 does not exist.
Results. Record ('XXX') . Account does not exist.
Results. Record ('XXX') . Update has been cancelled.
This issue was caused by incorrect lincence configuration when a field was passed on and the key was not enabled.
Below code can be used to clean the data in the staging on the fly.
static void CLearCustomerEntityState(Args _args)
{
DMFCustomerEntity cust;
int counter;
;
counter = 0;
while select forUpdate cust where cust.TransferStatus == 2
{
ttsBegin;
cust.State = "";
cust.County = "";
cust.AccountBalance = 0;
cust.update();
ttsCommit;
counter++;
}
info(strFmt("Cleared : %1",counter));
}
static void InsertSecurityRoles(Args _args)
{
SecurityRole role;
;
ttsBegin;
select forUpdate role;
role.Name='SEC_Group';
role.AOTName='SEC_Group';
role.description='Description of the security role';
role.insert();
ttsCommit;
info("Groups Created");
}