Total Pageviews

Search This Blog

Saturday, February 11, 2017

Dynamics AX 2012 R3 Troubleshoot Error Duplicate request to load user role mappings detected - KB 3158762


For one of my client who is on AX 2012 R3 CU8, We started getting this error on 2 of our PROD AOS Event Viewer - "Duplicate request to load user mappings detected"


After some initial troubleshooting, found out this binary hotfix in LCS, which fixes the following issue

Once you download the hotfix, just run it using the AXUpdateInstaller. It takes few mins depending on your AOS topology and servers to run this update.

Word of caution - As with any hotix (be it application or binary, always test on your TEST instances and leave it running for couple of weeks, monitor and only then deploy the hotfix to your PROD)

Notes form the hotfix description in LCS:

After you apply the kernel hotfix KB3133925, when you execute the Automatic role assignment function, you receive the following error message:

"Duplicate request to load user role mappings detected."
The changes in the hotfix add the "AutoSkipXdsGeneration a_SkipXDS(ip);" line to start of AuthenticationContext.LoadRoles to ensure you can execute the Automatic role assignment function without any error messages.

Wednesday, February 8, 2017

How to leverage the out of the box standard data packages available in Dynamics 365 for Operations

Greeting Friends,

I was recently asked on how to retrieve all the data packages available in Dynamics 365 for Operations so that we can setup a new legal entity and populate all the necessary configuration required for each module.
Before we get into the specifics on how to do it, let’s understand some of the key terminologies 


a. Data Entities

Data Entities is the basic building block for any data related activities which you need to perform in the new Dynamics 365 for Operations – be it your data migration, integration, reporting and so on. You can think of data entities as a view which encapsulates the complex relationship of your underlying tables and provides you with a simple way of managing the data. For e.g. if you look at the customer data model, the underlying tables form a complex relationship between Customer and Party relationships. But with data entity, you don’t have to worry about the complex relationships and just use one simple view for managing the customer’s data. Similarly, you have data entity for all other data models in Dynamics 365 for Operations. Out of the box, we have more than 1900 data entities as of November 2016, Update

b. Data Packages

Think of Data Packages as a group of data entities and primarily used for transporting your data entities from one environment to another. You can think of a package as a collection of data entities related to a standard functionality for e.g. We can have a data package called Number Sequence Setup which will have related data entities like Number Sequence code and Number Sequence Reference data entities. We have more than 250 data packages which are available out of the box

c. Process Data Packages 

Process Data Packages also known as PDP is a collection of data packages which can be linked to a business process. The PDP is then used to configure a business process or a group of business processes in one business process library.

How to Import the out of the box standard data packages available in Dynamics 365 for Operations

1. Go to LCS > Select your Project

Next, go to Asset Library > Process Data Package as shown below

Click on Import button in Process data package and pick the relevant Process Data Package update based on your environment

It will show status as “Publishing”

Give it like a minute and the status changes to Draft

Also, you can now look into the Data Package asset type and you will see all the standard data packages populated there as shown below:

You can click one of these data package files and download it and you can view the data entities which belong to that corresponding package

Thursday, January 5, 2017

Dynamics 365 for Operations - Troubleshooting HTTP 500 HttpCompileException Error

Dear Friends,

Hope you had a great start to the New Year! :-)

I'm excited and pumped up as I unlearn and learn more about Dynamics 365 for Operations. Recently, on one of my D365 Dev VM, I encountered the below HTTP 500 error after a successful VS Build.

No longer, I was able to browse the url. 



Initially, I thought it was related to my custom model, so I deleted that from the packages directory, did an iisreset, stopped and started D365 services, SQL Services, restarted the whole box, but no luck.

Event Log Details:

Next, I dig a little bit into the event log, to find more about the errors logged there and i found this below message log - error CS1002 expected;

Next, I opened the cs file in VS and found for some reason the opening brace in Application_PreSendRequestHeaders was commented which was just weird, Don't know how it could have happened. 

Fix was to remove the comment and then save the Global.asax.cs file and that got me back to business.

Happy Operating D 365 :-) Have fun.

Saturday, November 19, 2016

Quick Tip - Dynamics 365 for Operations - How to change the runtime entity for VS Admin user

Greetings All,

Update [05/01/2017] - Another way to update the company is to go into your VS Project properties as shown below:

A quick tip - While executing your VS Code and if the browser opens up with a different entity as circled below in the screenshot.

A quick way to change the entity you want is go to AX and then System Admin > Users > Select the Admin user (- this was in my case) and then change the company to the one you intend and next time when you run your VS project, browser will display the right entity.

Tuesday, September 20, 2016

Quick tip - How to acivate demo data for Fleet Management in AX 7


Fleet Management is a custom module introduced in AX 7 for demo and training purpose and we have some tutorials around fleet management.

The other day I was putting up a quick demo around reservation management workspace and found the workspace empty with no data in it.

A quick way to activate Fleet Management with demo data is to go to

Fleet Management > Setup > Fleet Setup > Create sample customers, rentals and vehicles

Happy Daxing!