Skip to main content

Posts

Getting Error on AIF Web service enabling for custom class in Ax 2012

Problem I am Getting below Errors on AIF Web service enabling for custom class in Ax 2012. 1. Application pool 'MicrosoftDynamicsAXAif60' is being automatically disabled due to a series of failures in the process(es) serving that application pool. 2. There was an error during processing of the managed application service auto-start for configuration path: 'MACHINE/WEBROOT/APPHOST/Default Web Site/MicrosoftDynamicsAXAif60'. The error message returned is: 'An initialization error occurred while trying to preload an application. Exception: System.Configuration.ConfigurationErrorsException Message: Duplicate type with name 'Dynamics.Ax.Application.NewItem' in assembly 'Dynamics.Ax.Application, Version=6.3.1000.309, Culture=neutral, PublicKeyToken=null'. StackTrace:    at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)    at System.Web.Configuration.CompilationSection.LoadAllAssembl

Solved:Getting Error during Full CIL in Ax 2012 R3 CU11

I am Getting Error during Full CIL in Ax 2012 R3 CU11 version. " The SysWorkflowDictElement.getAttribute() reflection API could not create and return the AifCollectionTypeAttribute object. Please check the parameters." No any single report executing and giving parameter related error then tried to do full CIL then above error coming. Solution: Solution of this issue is as below. 1. first, compile the class mentioned in the error message and see if this solves the problem if not then use compile forward option. 2.Then use incremental compile option if again other class error coming then compile again till incremental compile issue not resolved. 3. Once incremental compile did then do full CIL. 4. Then if the issue still exists then do steps. 1) first stop the aos services and go to the folder of the XPPIL folder and delete all files 2) start the services of aos 3) and do the incremental CIL 4)THEN  Do FULLY CIL, THEN ALL THE SERVICE WILL BE STARTE

Import References for SSRS Report user Control in Enterprise portal axapta

Following Import References  are required in using section for Creating SSRS Report user Control in Enterprise portal axapta using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.DataVisualization.Charting; using System.Web.UI.WebControls; using Microsoft.Dynamics.Framework.Portal.UI.WebControls; using Microsoft.Dynamics.Framework.Portal.UI.WebControls.WebParts; using System.Diagnostics; using Microsoft.Dynamics.AX.Framework.Reporting.Shared; using Microsoft.Dynamics.Framework.BusinessConnector.Session; using Microsoft.Dynamics.AX.Framework.Portal.Data; using Microsoft.Dynamics.Framework.Portal.CommonControls; using System.Globalization; using Microsoft.Dynamics.AX.Framework.Services.Client; using Microsoft.Dynamics.Framework.Portal; using Microsoft.Dynamics.Framework.Portal.UI; using Proxy = Microsoft.Dynamics.Framework.BusinessConnector.Proxy; using Mic

Add Financial dimension Lookup at Enterprise portal in Axapta

To Add Financial dimension Lookup at Enterprise portal in Axapta you can to help with below code. protected void BusinessSector_LookUp(object sender, AxLookupEventArgs e) { //Getcurrent user to filter record based on current user String usr = WindowsIdentity.GetCurrent().Name; int pos = usr.IndexOf('\\'); usr = pos != -1 ? usr.Substring(pos + 1) : usr; AxLookup lookup = (AxLookup)sender; // Create the lookup data set. The respective table will be used. Proxy.SysDataSetBuilder sysDataSetBuilder; sysDataSetBuilder = Proxy.SysDataSetBuilder.constructLookupDataSet(AxSession.AxaptaAdapter, TableMetadata.TableNum(AxSession, "DimensionFinancialTag")); // Set the generated data set as the lookup data set. lookup.LookupDataSet = new DataSet(AxSession, sysDataSetBuilder.toDataSet()); using (Proxy.Query query = lookup.LookupDataSet.DataSetViews[0].MasterDataSource.query

X++ code to print sales invoice on printer directly

Below is the X++ code to print sales invoice on printer directly. Args salesArgs = new Args(); SalesInvoiceContract salesInvoiceContract; SalesInvoiceController controller; SrsReportRunImpl srsReportRunImpl; str fileName; CustInvoiceJour custInvoiceJour;// = _args.record(); select custInvoiceJour where custInvoiceJour.InvoiceId=="INV_00000009"; salesArgs.record(custInvoiceJour); controller = new SrsReportRunController(); salesInvoiceContract = new SalesInvoiceContract(); controller.parmReportName(ssrsReportStr(SalesInvoice,Report)); controller.parmShowDialog(false); controller.parmReportContract().parmPrintSettings().printMediumType(SRSPrintMediumType::Printer); // controller.parmReportContract().parmPrintSettings().printerName(@"\\espprn03\Follow Me - MFP"); salesInvoiceContract.parmRecordId(custInvoiceJour.RecId); // Record id must be passed otherwise the report wi

Ax 2012 Form Development,User control,Role centers,Citrix lookup issues

Simple form development using multiple tables How to create role center in Ax 2012 Custom lookup issue On citrix client How to create User control on EP website

Enable disable sales Invoice,Confirmation,packing slip and Picking list button in Ax 2012

Sometimes we need to enable disable button in Sales order form then you can apply your code in below method in SalesTableType class \Classes\SalesTableType\canConfirmationBeUpdated \Classes\SalesTableType\canInvoiceBeUpdated \Classes\SalesTableType\canPackingslipBeUpdated \Classes\SalesTableType\canPickingListBeUpdated For sales order list page you can refer below method. \Classes\SalesTableListPageInteraction\setButtonEnabled