Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics.

Hi,

Today i faced an issue while creating a PO in AX2012.

Failed

To solve this error,I tried following and the problem was fixed:

Tools > Options > Development > uncheck “Execute business operations in CIL”
As you can see the below screen.

user options

Purpose of this checkbox(“Execute business operations in CIL” or not?)

In AX 2012, steps are taken by the development team at Microsoft to align AX IDE with .NET. That’s why you regenerate the CIL after X++ code changes.

CIL obviously has its benefits like faster execution in cases of heavy logic processing.

But sometimes while testing or debugging, developers would prefer NOT to avail this option. Debugging can be cumbersome in AX 2012 as you will need to configure Visual Studio for code running in CIL. The solution is to uncheck a checkbox in Options at
Tools > Options > Development > General > Execute business operations in CIL

Now even the code which was running in CIL will now run in X++ interpreted mode, the old way.

Word of caution, this option should only be used by developers while debugging. It should ideally be checked again after work is finished.

Advertisements

One thought on “Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s