Skip to main content

Product / Product Master Import through DIXF Ax 2012 R3



The Microsoft Dynamics AX 2012 Data Import/Export Framework helps you import and export data in AX which include master data, open stock, and balances.
  • For Microsoft Dynamics AX 2012 R3, Data Import/Export Framework is included in the release.
  • For Microsoft Dynamics AX 2012 R2, Data Import/Export Framework is available in cumulative update 7 for Microsoft Dynamics AX 2012 R2.
  • For AX 2012 or Microsoft Dynamics AX 2012 Feature Pack, Data Import/Export Framework is available from Information Source-download.
Step 1: Define Parameters
Navigation: Data import export framework > Setup > Data import/export framework parameters
  • Create a folder in your directory
  • Browse the location for the folder which is created
  • Validate the directory, it will show the Green check box
Figure 1
Step 2: Pre-defined Entities in AX
AX has some of the pre-defined entities inbuilt in the application of which we will use one of them.
Navigation: Data import export framework > Setup > Target Entities
Figure 2
Step 3: Create Source Data formats
Navigation: Data import export framework > Setup > Source Data formats
Determine the source of the data to export or import, and create a source data format for the data. For export, the source is AX. For import, you can use any of the following sources:
  • AX– Import data from another Microsoft Dynamics AX instance.
  • ODBC– Import data from another database, such as Microsoft SQL Server or Microsoft Access.
  • File– Import data from a fixed-width or delimited text file, XML file, or Microsoft Excel file.
  • Source as “Comma”
  • Enter a description for it as “Comma separated file”
  • Type – select the type as “File”
  • In the General area on the right side of the form select
    • Column delimiter as “comma (,)”
Figure 3
Once the above setups are done we will now start creating target entities for which we want to upload the data in AX
Step 4: Create Processing group
Navigation: Data import export framework > Common > Processing group
  • Click on New on to create a new group
  • Enter group name as Product
  • Enter a suitable description
  • Then click on Entities to get the required fields and move on to next step
Figure 4
Step 5: Select entities for processing
Once you click on Entities in the above step it will open a new form wherein we need to create
  • Click on New button
  • Select the Entity as “Product Master” from the drop down
  • Select the Source data format as “comma” create in Step 3
  • Then click on the Generate source file to select the required fields
  • With this entity we can upload Product as well as Product Master.
Figure 5
Step 6: Generate Source file
Once you click on Generate source file a new wizard will be generated to create a template
  • Click on Next
Figure 6
Step 7: Select the required fields to upload the Product and Product master
  • Select the Field name which are required to upload
  • By default some of the mandatory fields are selected
  • Apart from them you can select some other fields as shown in the below image.
  • Then click on Generate Sample File to generate a notepad for the selected fields with comma delimited
  • Click on Finish button
Figure 7
Step 8: Copy the data from notepad and paste it in excel
  • Place the cell in the first column
  • Click on the menu – Data
  • Then click on Text to columns
  • Click on Next
  • Select “Comma” in the delimiters and click on Finish button
Figure 8
Step 9: Enter the data in respective columns.
  • You can enter multiple records and make sure Product dimension groups are already created in AX in advance and use the same values in this sheet.
  • Once after completion of the data
  • Save the file as “CSV (Comma delimited)” in a folder
  • For Product select the product sub type as “Product” and product type as “Service” for service items.
Figure 9
  • For Product master select the product sub type as “Product master” and product type as “Item” for item master.
Figure 10
Step 10: Upload the excel file in the Processing group
Navigation: Data import export framework > Common > Processing group – Entities button
  • Browse the file which is created in the above Step 9
  • Click on Generate source mapping (an info log will be shown as “Product entity mapping done successfully”)
  • The validate the file (an info log will be shown as “Product” entity is validated for data import/export”)
  • You can get a preview of the data which is to be uploaded
Figure 11
Step 12: Get staging data
Navigation: Data import export framework > Common > Processing group
  • Select the Processing group – Product
  • Then click on “Get staging data”
Figure 12
Step 13: Staging job
  • A Staging job form will be opened
  • Job ID
  • Enter the description
  • Then click on OK
Figure 13
Step 14: Run the staging data
  • You can even get the preview of the data at the lower pane of the form
  • Click on Run button to execute the staging
Figure 14
  • We can even setup Batch processing by selecting the Batch check box and setup Recurrence
  • To execute the job immediately, Click on OK
Figure 15
  • An info log is generate for the same showing the number of records inserted
Figure 16
Step 15: Copy data to target
Navigation: Data import export framework > Common > Processing group
  • Select the Entity – Product
  • Click on Copy data to target
Figure 17
Step 16: Select a Job Id
  • Select the Job ID which is created in the above Step 13
  • Click on OK
Figure 18
Step 17: Run the Job
  • Select the Entity and Run the Job
Figure 19
  • We can even setup Batch processing by selecting the Batch check box and setup Recurrence
  • To execute the job immediately, Click on OK
Figure 20
  • An info log is generate for the same showing the number of records inserted
Step 18: View the records uploaded in AX
Navigation: Product information management > Common > Products > Products
  • 4 records are created
  • We can edit and enter additional information if required
Figure 21
Note: The same process can be used to upload the Product Master by creating the data in the same file or in a different file and repeat from step 10.

Comments

Popular posts from this blog

How to change client Language in ax 2012

Hello,  As you know that Dynmics Ax run on different languages. So I gonna tell you how to change client language country/region specific. this is nothing but a very simple step to do. Go To > File > Tools > Options > After that go to General tab and select the language which you want to use in your client. then apply and exit. In my case I was using Arabic language. Now restart your client and see the difference. You can do it from your database also . Go to Database server  . In my case it is sql server 2014. Select your database > tables > UserInfo > select the user > change the language code. Done Thanks.

Simple x++ query with enum value range

static void queryEnumValue(Args _args) {     Query                   query;     QueryRun                queryrun;     QueryBuildDataSource    qbds;     QueryBuildRange         qbr;     PurchTable              purchTable;     ;         query = new Query();         qbds = query.addDataSource(tableNum(PurchTable));     qbds.addSortField(fieldNum(PurchTable, PurchId), SortOrder::Ascending);     qbr     = qbds.addRange(fieldNum(PurchTable, PurchStatus));         qbr.value(enum2str(PurchStatus::Received));         queryrun = new QueryRun(query);         while(queryrun.next())     {         purchTable = query...

Unit Conversion by code in ax 2012 R3 , X++

static void unitConversion() {     SysExcelApplication xlsApplication;     SysExcelWorkBooks xlsWorkBookCollection;     SysExcelWorkBook xlsWorkBook;     SysExcelWorksheets xlsWorkSheetCollection;     SysExcelWorksheet xlsWorkSheet;     SysExcelRange xlsRange;     SysExcelCells Cells;     SysExcelCell RCell;     CommaIO inFile;     int nRow,i;     DialogField dialogPath;     Dialog dialog;     Filename filename;         UnitOfMeasureConversion             unitOfMeasureConversion;     UnitOfMeasure                       unitOfMeasure;     EcoResProduct                       ecoResProduct;     RecId               ...