Skip to main content

Posts

Showing posts from July, 2015

Get Product based on Item group in MSD Ax 2012

To get Item details or  Product based on Item group in Ax 2012 you can try below code in job. In this job Test_InventItemGroup is query on which you need to include inventItemgroupItem and inventTable. I have pass the range TT as item group same way you can use in your customization. Query query; QueryRun qr; QueryBuildDataSource qbds; QueryBuildRange queryBuildRange; InventItemGroupItem IntventTest,InventTest1; ; query = new Query(queryStr(Test_InventItemGroup)); qbds = query.dataSourceTable(tableNum(InventItemGroupItem)); queryBuildRange = qbds.addRange(fieldNum(InventItemGroupItem,ItemGroupId)); queryBuildRange.value("TT"); qr = new QueryRun(query); while(qr.next()) { IntventTest= qr.get(tableNum(InventItemGroupItem)); select ItemId from IntventTest1 where IntventTest1.ItemGroupId == IntventTest.ItemGroupId; info(strFmt("%1",IntventTest.ItemId)); }

Facing Error -failed to logon to Microsoft dynamics axapta in ssrs report for one user

I faced following error  on running ssrs report. Reports working for all user except one user. Error Description from Event log viewer. 1.Error No.1 An error has occurred in the services framework.  Method: AifMessageInspector::AfterReceiveRequest.  Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.    at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeSession()    at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.InitializeContext()    at Microsoft.Dynamics.Ax.Services.AxServiceOperationContext.Attach(OperationContext owner)    at System.ServiceModel.ExtensionCollection`1.InsertItem(Int32 index, IExtension`1 item)    at System.Collections.Generic.SynchronizedCollection`1.Add(T item) 2.Error No.2 An error has occurred in the services framework.  Method: AifMessageInspector::AfterReceiveRequest.  Error: System.ServiceModel.FaultException: Failed to logon to Microsoft Dynamics AX.    at Microsoft.Dynamics.Ax.