Saturday, December 3, 2016

Import Data From an ODBC Through DIXF-AX 2012

Microsoft Dynamics AX 2012 Data Import/Export Framework provide the functionality to import data from an ODBC data source into Dynamics AX we will illustrate how to import data from MS SQL database into AX. First we will create sample database that contain some data. Then create an ODBC data source, I have table in AOT , Whose name is DataIMPTable, as below 20.png

Open Microsoft SQL Server Management Studio, create new table as like below and enter record
 Go to Control Panel > Administrative Tools >  Data Source (ODBC). 

Click Add to create New ODBC. 23.png
 Open AX then Go To DIXF > Setup > Source data format >
  •  Click New
  •  Enter the Data Source Name, Description then select ODBC from the Type List
  •  From the DNS Type Select USer DNS
  •  From DNS Location Select Client.
24.png

Go To Common > Processing group > Click new enter the Processing group Name, Description > Click Ctrl + S to save > Click Entities

. Enter Group name =S-OBDC , Description=S OBDC

25.png Enter entity name = Data Imp Direct Table-2, Source data format=S_obdc enter sql query = select * from student Click Ctrl + S to save Click on Modify Source Mapping and map source and target fields as like
  • 13
12 Go To processing Group and select Group name and click on Get staging data
  • 1415
Click on Run Button --- > Ok
  • 16
they give  message for inserted record as like below
  • 17
  • Go to execution history for checking status
  • 18
Go to table and form and check data ,record inserted
  • 1920

No comments:

Post a Comment