Showing posts with label Dynamics AX 2012. Show all posts
Showing posts with label Dynamics AX 2012. Show all posts

Tuesday, July 16, 2013

Inside Microsoft Dynamics AX 2012 Master Data Management Scenario

Inside Microsoft Dynamics AX 2012 Master Data Management Scenario
 
Purpose: The purpose of this document is to describe Master Data Management capabilities included in standard Microsoft Dynamics AX 2012 Please note that in the previous articles I described how to implement Master Data Management scenario for Microsoft Dynamics using Microsoft SQL Server 2012 Master Data Services.
 
Challenge: There is number of tools and services available for Microsoft Dynamics AX 2012 which have Master Data Management capabilities. The challenge is to understand usage scenarios and how to apply them properly. Please note that Master Data Management capabilities included in standard product may be enough for some of your scenarios.
 
Solution: Microsoft Dynamics AX 2012 does provide some out-of-the-box Master Data Management capabilities for number of business entities which we are going to review in this document.  
 
Scenario
 
In this walkthrough for the sake of simplicity I’ll be focusing on usual Master Data Management entities such as Customers and Products.
 
Walkthrough
 
In this walkthrough I’m using Microsoft Dynamics AX 2012 R2 Demo VM (AX2012R2A) which has USMF company as a part of Demo data
 
Let’s first consider Customers. The customer business entity in Microsoft Dynamics AX 2012 has associated Global Address Book record which can be one of two types: Person or Organization
 
Global Address Book
 
 
Please note that in Maintain section on Global address book tab in the menu bar we have number of functions which may help us to manage Global address book records such as “Merge duplicates” and “Check for duplicates”
 
Check duplicates
 
 
Check duplicates function allows you to find similar Global address book records based on set of criteria such as Name, Phone, E-mail, State, City, ZIP/postal code. In this case I was looking for Global address book records also belonging to WA State
 
Maintain
 
 
After you identify duplicate Global address book records you can merge them by using “Merge records” function
 
Merge party records
 
 
On the dialog screen you will have to select Survivor party
 
All customers
 
 
Please note that you can also export information to Excel workbook from any list page in Microsoft Dynamics AX 2012
 
Now let’s look at Products. In Microsoft Dynamics AX 2012 you can manage products and product masters definitions separately from released products. Product and product master definitions are shared across all companies, but released products are typically only released to selected companies. This allows for centralized management of products within enterprise, at the same time you may want to create released product right away (decentralized approach) and the system will create appropriate product definition for you automatically
 
All products and product masters
 
 
Using centralized approach once you created product definition you will release it to one or more companies
 
Release products – Select products
 
 
Release products – Select companies
 
 
Product release session batch
 
 
Please note that you may want to execute release of products as a batch job
Ultimately when the product is released to particular company you will see it on Released products list page as shown below
 
Released products
 
 
Microsoft Dynamics AX 2012 also provides other data management capabilities applicable to any business entity or table. For example, Database log functionality allows you to log details of changes done to selected tables. Let’s see how we can apply Database log functionality to Customers and Products in Microsoft Dynamics AX 2012. 
 
Logging database changes - Welcome
 
 
//Configuration key = Ledger basic
 
Logging database changes – Tables and fields
 
 
In this particular case I’ll select Customers
 
Logging database changes – Type of change
 
 
I’ll be also interested to log all changes made to Customer records
 
Logging database changes - Finish
 
 
By the result of Logging database changes wizard the following record will be created on Database log setup form
 
Database log setup
 
 
Now when you do any changes to Customer records they will be appropriately tracked
 
Database log - Overview
 
 
You can also review details of those changes including info who changed the data, when, and what exactly was changed (old value vs new value)
 
Database log - History
 
 
Please note that when you activate Database log you introduce certain performance overhead
Microsoft Dynamics AX 2012 also provides Electronic Signature feature which works in conjunction with Database log functionality. Let’s review how this works!
 
First off Electronic Signature feature first has to be enabled in License Configuration
 
License Configuration  
 
 
Microsoft Dynamics AX 2012 provides number of standard templates for Electronic Signature controlled business entities. For example, BOM and Route
 
Electronic signature requirements
 
 
In this particular case I’ll activate Electronic Signature for BOM Activation process (“Activate BOM version”)
 
I’ll also need to get a certificate, designate approver and set up a password on Options form in Electronic Signature section
 
Options
 
 
When all preparation work is done we can now test Electronic Signature functionality out
I’ll go ahead and try to activate BOM version so I see “Sign document” dialog popped up
 
Sign document
 
 
Now I’ll provide approver password so I can successfully activate BOM version
 
Database log
 
 
When I’m done the fact of change will be logged in Database log as shown above
 
Signature review
 
 
You can also review detailed information regarding change including Signature information
In this document we reviewed just some of Master Data Management capabilities included in standard Microsoft Dynamics AX 2012
 
Summary: This document describes how to leverage existing Master Data Management capabilities included in standard Microsoft Dynamics AX 2012. In particular I explained how to use global address book and product management features related to Master Data Management, and some generic Master Data Management features such as Database log ad Electronic signature. Please review my other articles to learn how to implement Master Data Management scenario for Microsoft Dynamics using SQL Server Master Data Services.
 
Tags: Dynamics AX 2012, Master Data Management, Customers, Products, Global Address Book, Released Products, Database Log, Electronic Signature.
 
Note: This document is intended for information purposes only, presented as it is with no warranties from the author. This document may be updated with more content to better outline the issues and describe the solutions.
 
Author: Alex Anikiev, PhD, MCP

Microsoft SQL Server 2012 Data Quality Services

Microsoft SQL Server 2012 Data Quality Services
 
Purpose: The purpose of this document is to provide a walkthrough of how to leverage Microsoft SQL Server 2012 Data Quality Services in conjunction with Master Data Services for Microsoft Dynamics Master Data Management scenario.
 
Challenge: The pain that organizations are experiencing around data accuracy, consistent reporting, regulatory compliance, etc. generated a lot of interest in Master Data Management. Master Data Management becomes extremely important when you have multiple different systems and you have to manage the data in different systems. In fact what we would also love to do is to control the quality of the data and be able to perform data cleanse, data matching and other data quality related activities.
 
Solution: The data-quality solution provided by Data Quality Services (DQS) enables a data steward or IT professional to maintain the quality of their data and ensure that the data is suited for its business usage. DQS is a knowledge-driven solution that provides both computer-assisted and interactive ways to manage the integrity and quality of your data sources. DQS enables you to discover, build, and manage knowledge about your data. You can then use that knowledge to perform data cleansing, matching, and profiling. You can also leverage the cloud-based services of reference data providers in a DQS data-quality project.  
 
Scenario
 
By now we have already implemented Master Data Management scenario using Microsoft SQL Server 2012 Master Data Services. The next step is to integrate Master Data Services with Data Quality Services to deliver end-to-end Master Data Management solution. For the sake of simplicity in this document I’ll consider usual Master Data Management entities such as Customers and Products.
 
Walkthrough
 
In this walkthrough I’m using Microsoft Dynamics AX 2012 R2 Demo VM (AX2012R2A) which has Microsoft SQL Server 2012 installed and Microsoft Dynamics CRM Online (free trial)
 
After you install Microsoft SQL Server 2012, Master Data Services and Data Quality Services (Server and Client components) you have to run Data Quality Server Installer to perform necessary post installation tasks by using dedicated installer which will create appropriate DQS databases, set up security, etc. In case you have multiple instances of Microsoft SQL Server installed please locate appropriate DQSInstaller.exe file in corresponding Microsoft SQL Server Binn folder
 
 
Please note that the default Microsoft SQL Server instance may be different from the desired (MSSQLSERVER) which is the case for Microsoft Dynamics AX 2012 R2 Demo VM (AX2012R2A), that’s why it is critical to run appropriate DQSInstaller.exe during DQS installation  
 
Data Quality Server Installer 
 
 
Once DQS installation is complete you can launch DQS Client
 
SQL Server Data Quality Services – Client
 
 
The next step will be to create Knowledge base for future data quality related activities. In particular I’ll be doing data matching trying to detect duplicates
 
Knowledge base management
 
 
Please note that number of domains are available for Knowledge base “DQS Data”. In particular I’ll be using “US – Last name” domain to detect duplicates based on last name of customers
 
Actual data matching we’ll perform in Microsoft Excel
 
 
That’s why first off we have to establish connection to MDS Server
 
Excel Add-in – Add new connection
 
 
Manage connections
 
 
Once connection has been established
 
 
Now we can use Master Data Explorer to open up appropriate Model (“Dynamics”)
 
 
In this scenario I’ll work with customers and at the moment I have one customer record in Customers table in MDS database
 
 
In Microsoft Excel I can introduce new (External) data as shown below
 
 
But before I publish this data to MDS I can perform data matching and find out if I have any duplicates or similar data based on criteria defined. For these purposes I’ll use Combine data feature which allows me to combine MDS data and External data in order to perform data matching activities
 
Combine data
 
 
I’ll select what data I want to combine and map the fields appropriately. Once this is done the system shows “who is who” in SOURCE field
 
 
When I have the data for analysis I can use Match data feature to perform data matching
 
Match data
 
 
Please note that for Name field I specify Domain = US – Last name, so the system will apply matching rules for the analysis based on Last name. The data will be clustered in accordance to similarity as shown below in CLUSTER_ID field  
 
 
Finally I’ll Show Details to see the results of extended analysis
 
 
Please note that for External data the system assigned a score in SCORE field which shows degree of similarity within the cluster. It appears that “Alex Anikiiev” is 90% similar to “Alex Anikiev” which allows me to define and eliminate duplicate data before publishing this to MDS
 
You can also perform periodic data cleanse, data matching and other data quality related activities using MDS and DQS to ensure the quality of your master data
 
Summary: This document describes how to leverage integration of Master Data Services and Data Quality Services when implementing Master Data Management scenario for Microsoft Dynamics AX 2012 and Microsoft Dynamics CRM. In particular I explained how to use Data Quality services in order to perform data matching based on certain criteria. Microsoft SQL Server 2012 provides a robust platform for Master Data Management which not only includes Master Data Services, but also Data Quality Services, SQL Server Integration Services, etc. Master Data Services provides Web front-end as well as Excel Add-in which allows you to choose your favorite tool to perform Master Data Management activities.
 
Tags: SQL Server 2012, Dynamics AX 2012, Dynamics CRM Online, Master Data Management, Master Data Services, Data Quality Services, SQL Server Integration services, Customers, Products.
 
Note: This document is intended for information purposes only, presented as it is with no warranties from the author. This document may be updated with more content to better outline the issues and describe the solutions.
 
Author: Alex Anikiev, PhD, MCP

Tuesday, May 14, 2013

Microsoft Dynamics AX 2012 Intelligent Data Management Framework in Master Data Management Scenario

Microsoft Dynamics AX 2012 Intelligent Data Management Framework in Master Data Management Scenario
 
Purpose: The purpose of this document is to explain what Master Data Management capabilities are provided by Microsoft Dynamics AX 2012 Intelligent Data Management Framework. Please note that in the previous articles I described how to implement Master Data Management scenario for Microsoft Dynamics using Microsoft SQL Server 2012 Master Data Services.
 
Challenge: There is number of tools and services available for Microsoft Dynamics AX 2012 which have Master Data Management capabilities. The challenge is to understand usage scenarios and how to apply them properly. Microsoft Dynamics AX 2012 Intelligent Data Management Framework also has a notion of master data and it allows to replicate master data between production database and archive database. In this walkthrough we will explore how this correlates with Master Data Management scenario.
 
Solution: Intelligent Data Management Framework for Microsoft Dynamics AX lets system administrators optimize the performance of Microsoft Dynamics AX installations. The Data Management Framework assesses the health of the Microsoft Dynamics AX application, analyzes current usage patterns, and helps reduce database size. 
 
Scenario
 
Intelligent Data Management Framework for Microsoft Dynamics AX provides means for master data synchronization between production database and archive database. Using Intelligent Data Management Framework for Microsoft Dynamics AX you can’t truly implement Master Data Management scenario because Intelligent Data Management Framework operates with database tables and not business entities such as Customers and Products, however you can perform some critical administrative tasks related to master data
 
Please find more info about Intelligent Data Management Framework for Microsoft Dynamics AX here: http://technet.microsoft.com/en-us/library/hh378082.aspx
 
Please also note that Intelligent Data Management Framework currently doesn’t support Microsoft Dynamics AX 2012 R2. This support will be added shortly
 
Walkthrough
 
Let’s provide some core definitions for Intelligent Data Management Framework
 
Master data synchronization is the process of replicating master data tables from the production database to the archive database. This process copies the master data tables from the production database to the archive database to keep them synchronized. These tables are not archived, meaning they retain their data in the production database after the records are copied to the archive database
 
Intelligent Data Management Framework considers all tables which belong to table group Group, Main, Reference or Parameter as master data. Please note that CustTable (Customer data) and EcoResProduct (Product definitions) tables have table group Main
 
Now we can install Intelligent Data Management Framework. And as soon as Intelligent Data Management Framework currently doesn’t support Microsoft Dynamics AX 2012 R2 (the error during Post-installation tasks execution prevents you from completing the installation) I installed Intelligent Data Management Framework on Microsoft Dynamics AX 2012 FPK Demo VM (AX2012-A)
 
There’re couple of nuances during the installation which I highlight below
 
Welcome to IDMF (Beta) Setup Wizard
 
 
Checking prerequisites
 
 
Please note that the installer is asking for MSDTC to be installed which can be done by Adding Role Services in Server Manager in Windows Server OS
 
Select Role Services
 
 
Please note that I selected “Distributed Transaction” Role Services for installation
 
Choose a Server Authentication Certificate for SSL Encryption
 
 
For the sake of simplicity I selected “Choose a certificate for SSL encryption later”
 
Confirm Installation Selections
 
 
Installation Results
 
 
Now we can install Intelligent Data Management Framework itself
 
Microsoft Software License Terms
 
 
Setup components
 
 
Select Microsoft Dynamics AX version
 
 
Create new management database
 
 
Please note that brand-new database with name “IDMF” will be created by installer
 
Specify Microsoft Dynamics AX production database
 
 
Specify Microsoft Dynamics AX production replica database
 
 
In this instance in SQL Server Management Studio I simply copied (Copy database function) production database to create a replica of production database with a different name
 
Create new archive database
 
 
Specify e-mail settings
 
 
For the sake of simplicity I left them blank
 
Specify service account
 
 
Ready to install
 
 
Completing DMF (Beta) Setup Wizard
 
 
After installation is complete you will also need to run Post-installation tasks
 
Post-installation tasks
 
 
Post-installation tasks – Error
 
 
Please note that you may face with “XPO import completed with error. Contact the administrator” error. In this instance I had to manually fix compilation error in Classes\DMTVirtualSummaryTrans\Methods\updateVirtuelTransferClosing method due to wrong number of arguments (Catch Weight qty argument specific to FPK build was not provided)
 
Now we can launch Intelligent Data Management Framework
 
Framework checklist
 
 
In the menu bar you will notice number of places where “Master data” is mentioned
 
Schedule – Synchronize Master data
 
 
On Schedule tab Synchronize Master data function will allow you to synchronize Master data between production database and archive database
 
Administer – Configure Master data tables
 
 
On Administer tab you can click Configure Master data tables to decide which tables will be selected as Master tables for Synchronization of master data. By default, all tables in the master data tables list are selected. At run time, the master data synchronization schedule synchronizes all selected tables in this list, using the production database as the source database and the archive database as the target database. Clear the check box for a table to deselect the table. A deselected table is not considered a master data table and is not synchronized when the master data table synchronization schedule runs
 
On Analysis tab you will have access to statistical data for production database which provides important performance-related information about size of tables, fragmentation of indexes, etc.
 
Analysis – Analysis dashboard
 
 
Please note that before you will have access to Analysis dashboard you will have to generate Analysis snapshot of production database
 
On Administer tab when you click on Configure Master data tables you will get access to Data replicator section which lists all Master tables with extended details 
 
Data replicator
 
 
Please note that CustTable and EcoResProduct tables are also listed in Data replicator section
As the result based on information provided by Intelligent Data Management Framework you will be able to analyze the health of the database, prevent performance degradation, do performance optimization, etc.
 
Summary: This document describes how to use Microsoft Dynamics AX 2012 Intelligent Data Management Framework for database administrative tasks. Intelligent Data Management Framework can’t be used for implementing Master Data Management scenarios per say, however the information provided by Intelligent Data Management Framework about master data tables will definitely help you to fine-tune performance of Microsoft Dynamics AX 2012 installation. Please review my other articles on how to implement full-fledged Master Data Management scenario for Microsoft Dynamics using SQL Server Master Data Services.   
 
Tags: Dynamics AX 2012, Intelligent Data Management Framework, Master Data Management, Customers, Products.
 
Note: This document is intended for information purposes only, presented as it is with no warranties from the author. This document may be updated with more content to better outline the issues and describe the solutions.
 
Author: Alex Anikiev, PhD, MCP