Sunday 18 May 2014

AIF exception error “Instances of abstract classes cannot be created”

The AIF exception errors normally are quite self explanatory; especially validation but recently we were faced with the following odd error: -
The request failed with the following error:  Instances of abstract classes cannot be created
What is very odd about this error is that we knew we didn’t have any code that was trying to instantiate an abstract class. After all we had no compile errors.
So what could be causing such a strange error? My immediate thought was that it was so odd that it could be a corruption of some kind. The most likely corruption would be an IL build one and this was indeed the case. We executed a full IL build and once that had been done we were able to successfully import data via AIF again without any error.
So if you are ever faced with an AIF exception error “Instances of abstract classes cannot be created” I would recommend you first check your IL build.

Saturday 17 May 2014

Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics Axapta R2- R3

Hi all ,
I faced this error in AX R3 "Failed to create a session; confirm that the user has the proper privileges to log on to Microsoft Dynamics" , so did some research. It seems the UserInfo table is not correctly updated and the partition administrator is not updated correctly when you restore an existing DB or the Demo database.
To fix this, you can do the following.


  • Stop the AOS
  • Restore the database again
  • Start the AOS
  • Start a client and complete the partition initialiasation checklist
  • Close the client and execute the script below on the SQL database
  • Restart the client and reimport your license (if you were restoring the Microsoft demo data, the demo license is back in there)
  • Then compile / generate CIL / DB sync and you should be on track again!
The script for updating the UserInfo inforation is as follows:
DECLARE @NetworkDomain nvarchar(255);
DECLARE @NetworkAlias nvarchar(80);
DECLARE @SID nvarchar(124); DECLARE @InitialPartition BIGINT;
 
SELECT @InitialPartition=Recid FROM PARTITIONS WHERE PARTITIONKEY=N'Initial'
 
SELECT @NetworkAlias=NETWORKALIAS,@NetworkDomain=NETWORKDOMAIN,@SID=SID FROM USERINFO WHERE PARTITION=@InitialPartition AND ID = N'Admin'
 
UPDATE USERINFO SET NETWORKDOMAIN=@NetworkDomain,NETWORKALIAS=@NetworkAlias,SID =@SID WHERE PARTITION != @InitialPartition AND ID = N'Admin'

Saturday 3 May 2014

Microsoft Dynamics AX 2012 R3 Training: Transportation Management

Hi ,

This link is helpful for who is responsible for the setup and administration of transportation management functionality. Get an introduction to the transportation management flow and concepts in Microsoft Dynamics AX 2012 R3. The information is helpful for Transportation Managers, Transportation Coordinators, Shipping Planners, and Shipping Clerks.

http://channel9.msdn.com/Series/Microsoft-Dynamics-AX-2012-R3-Training/01

Microsoft Dynamics AX 2012 R3 Warehouse Management

Hi ,

This link is helpful for who is responsible for setup and administration of warehouse management functionality. This will help to get an introduction to warehouse management flow and concepts in Microsoft Dynamics AX 2012 R3. The information is helpful for Warehouse Workers, Warehouse Managers, and Shipping and Receiving Personnel.

http://channel9.msdn.com/Series/Microsoft-Dynamics-AX-2012-R3-Training/02