Posts

Showing posts from May, 2015

Shrink DataBase log file - Sql 2012

Hi, I had situation, when my log file size is increased and there is no space in my drive. so I could not able to login to Ax. I used the shrink data base file option to reduced the log file size. For that, I have done below steps, 1) stopped my AOS service 2) Open SQL 2012 management studio 3) To set the Recovery model =  "SIMPLE" for your DB. (my case AxDevDB) (Choose Your DB, right click and go to properties and then go to Option tab to see the recovery model) 4) Right click the DB and choose SHRINK -> File and choose the AXDevDB_log file and press ok. (it will reduce 99% of the log file size). 5) To set back the Recovery model = "FULL" for your DB. 6) Start the AOS Service. To run the SQL Script, use below, USE AxDevDB; GO -- Truncate the log by changing the database recovery model to SIMPLE. ALTER DATABASE AxDevDB SET RECOVERY SIMPLE; GO -- Shrink the truncated log file to 1 MB. DBCC SHRINKFILE (AxDevDB_Log, 1); GO -- Reset the database recovery

Import Procurement Hierarchy / Categories with out code in ax 2012

Hi, To build the procurement category in ax 2012, we are going to use the " EcoResCategoryImportService ". This service is available in the standard ax box. In this article, interest thing is how to build the XML file from EXCEL. I love that. (It is easy to build the xml file, if we know this way) Please refer the link below for the detailed document, http://www.junctionsolutions.com/dynamicsax/loading-a-merchandising-hierarchy-with-no-programming/ Create XML from Excel. https://www.youtube.com/watch?v=9h7TW--M8BU Note: Before import, you must enable the " Execute business operations in CIL" in this path, File > Tools > Options > Development > General > Execute business operations in CIL Thanks, Vijaykarthik

Copy favorites From one user to another user - Ax 2012

Hi, The below job is used to copy the favorites from one user to another user. static void CopyFavoritesJob(Args _args) { SysPersonalization FromSysPersonalization; SysPersonalization ToSysPersonalization; UserId FromUserId= 'user01' ; UserId ToUserId= 'user03' ; ; ttsbegin ; // step 1 - delete current favorites menu from user while select forupdate ToSysPersonalization where ToSysPersonalization.ElementType==UtilElementType::UserMenu && ToSysPersonalization.UserId==ToUserId { ToSysPersonalization.doDelete(); } // step 2 - duplicate from user01 while select FromSysPersonalization where FromSysPersonalization.UserId==FromUserId && FromSysPersonalization.ElementType==UtilElementType::UserMenu { ToSysPersonalization.data(FromSysPersonalization); ToSysPersonalization.UserId=ToUserId; ToSysPersonalization.doInsert(); } ttscommit