Tuesday, 5 November 2019
Generate list of customer addresses with purposes
Sunday, 13 January 2019
Division by zero error Sales Order Invoice Postings
I discovered there was an unhandled exception in the line of code for \classes\SalesInvoiceDP\insertIntoSalesInvoiceTmp method on a certain line of code as below
Line 122 of the method states
Changing that line of code to below resolves the issue
if((_custInvoiceTrans.LineAmount +_custInvoiceTrans.LineAmountTax) * _custInvoiceTrans.LineAmount == 0)
salesInvoiceTmp.SalesPrice = 0 ;
else
salesInvoiceTmp.SalesPrice = _custInvoiceTrans.SalesPrice / (_custInvoiceTrans.LineAmount +_custInvoiceTrans.LineAmountTax) * _custInvoiceTrans.LineAmount;
Friday, 14 December 2018
Update Variant Sizes based on Configuration
Tuesday, 9 October 2018
Update Product numbers for Released and Product Master
Tuesday, 2 October 2018
Dynamics AX R3 | List of all tables with details
Wednesday, 28 October 2015
Wednesday, 24 December 2014
AX 2012 Shortcuts
http://jamesandthegiantaxproject.wordpress.com/ax-quick-reference-shortcuts
Thursday, 4 December 2014
Get list of all Projects in AOT
Sunday, 19 October 2014
DIXF / DMF Issue with Entities
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));
}
Wednesday, 15 October 2014
Create Security Roles Using X++
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");
}
Thursday, 3 October 2013
Native boot Dynamics AX 2012 V3 VM
- Download and extract the VM on your hard drive.
Partnersource (https://mbs.microsoft.com/customersource/downloads/servicepacks/AX2012DemoToolsMaterials.htm) - Right Click My computer and click Manage.
- Computer Management window will pop up. Click on Disk Management in the right hand navigation. Under Action Menu click Attach VHD.

- A dialog box will appear to browse the VM file.

- Once the VM is attached, it will appear in the lower left section of the window.
- Just make a note of the drive letter. For assumptions I will use J: as my VM drive.
- Open DOS prompt with Admin privileges
- Type ‘bcdboot J:\windows’
Thursday, 29 August 2013
Error "Account number for transaction type Purchase, receipt does not exist"
Sunday, 2 June 2013
Modules of Dynamics AX 2009 and AX 2012 R2
|
MODULES IN Dynamics AX 2009
|
MODULES IN Dynamics AX 2012 R2
|
|
Inventory
Management
|
· Inventory
Management
· Product
Information Management
|
|
Accounts
Payable
|
· Procurement
and Sourcing
· Accounts
Payable
|
|
Accounts
Receivable
|
· Sales
and Marketing
· Accounts
Receivable
|
|
General
Ledger
|
· General
Ledger
· Budgeting
· Fixed
Assets
· Compliance
and Internal controls
|
|
Cost
Accounting
|
· Cost
Accounting
|
|
Bank
|
· Cash
and Bank Management
|
|
CRM
|
· Moved
to Sales and Marketing module
|
|
Master
Planning
|
· Master
Planning
|
|
Production
|
· Production
control
|
|
Product
Builder
|
· Moved
to Product Information Management
|
|
Shop floor
Control
|
In 2012
R2, this modules has been splitted into three modules and is accessible
through Home, Production Control and HR modules.
· Time
and Attendance (HR)
· Clock
In and Out (Home)
· Manufacturing
execution (PC)
|
|
Human
Resource
|
· Human
Resources
|
|
Questionnaire
|
· Moved
to Home
|
|
Expense
Management
|
· Travel
and Expense
|
|
Projects
|
· Project
Management and Accounting (PSA)
|
|
Service
|
· Service
Management
|
|
Basic
|
· Organizational
Administration
|
|
Administration
|
· System
Administration
|
Wednesday, 17 April 2013
Delete ALL the transactional data in a company
- In the AOT expand Classes node
- Find the class 'SysDatabaseTransDelete' .
- There is a Main method defined for this class so when you right click and select Open, a message box will appear to ask confirmation. Select Yes.
- Depending on the volume of data, an info box will appear once the transactions are deleted.
Thursday, 4 April 2013
Labels in Version Control Environment | Dynamics AX 2012
Sunday, 17 March 2013
Boot your computer with Windows 2008 R2 Virtual Machine (VM)
Note: To use this trick, you have to have windows 7 or later(other than student version) or Windows 2008 R2 (or later) installed natively on your computer.
I understand that most of us have had the difficulty in using the virtual machines because of the computer's resources not fully available to the VM. The computer usually slows down and both the host and the guest machines start dying. I discovered a convenient way of running the Windows 2008 R2 VM with all the power that your computer posses.
In this tutorial, I will explain how the VM that contains Windows 2008 Server R2 with Dynamics AX 2012 installed can be used to actually boot the computer so that the VM will consume the whole power of your computer. I will be using a Windows 7 Ultimate Edition of windows natively installed.
Required Softwares:
- EasyBCD (http://neosmart.net/EasyBCD): It is a free for personal use software and enables to update the boot record of the computer to make it boot with the VM.
- Virtual Box (http://www.virtualbox.com): This is a virtual machine platform that enables the user to run virtual machines.
- Microsoft Windows 2008 R2 VM (Trial: http://support.microsoft.com/kb/2021579 or from Microsoft Partnersource)
VirtualBox Configuration
Steps to follow:
- Install both EasyBCD and Virtual Box on your machine.
- Configure and run the Windows 2008 VM using Virtual Box as per below screen captures.



- Once the machine is created, start it until the login screen appears.

- Once the login screen appears, it is save to properly turn the machine off using the close button.

The reason for above set of steps is to ensure that the VM understands your computer and somewhat learns the hardware configuration. Now we configure the boot configuration records to actually make the computer dual boot.
Updating the Boot Configuration Data (BCD)
- Open EasyBCD and on the left panel click 'Add New Entry'.
- In the highlighed area, provide the information of the VM.

- Once done, press 'Add Entry' and press 'Edit Boot Menu'. You should see the screen like below:

Once you're done with both the sets of procedures, you can restart your computer. Select 'Windows 2008 R2' option. Based on your computer's power, Windows will take some time for the first time to initialize the hardware and software configuration.


