Skip to main content

Posts

Get or split values start and end from range in Ax 2012

This is code sample to Get or split values from range in Ax 2012. For example you provided range from 100 to 110 and want both value start value and end value in some variable then you can use container to split range values. str range; str startValue,endValue; List ledgerRange= new list(Types::String); ListIterator listiterator; container con; range = "100..110"; rangevalue= strSplit(range,".."); listiterator = new listiterator(rangevalue); while(listiterator.more()) { con += listiterator.value(); listiterator.next(); } startValue = conpeek(con,1); endValue = conPeek(con,3); info(startValue); info(EndValue);    

Query to get Tax Registration Number by party Name in Ax 2012

This is the Query to get Tax Registration Number by party Name in Ax 2012. Intermediate table for DirPartyTable and taxRegistration is DirPartyLocation and registrationNumber is the field to get value of tax registration Number. DirPartyTable DirPartyTable; DirPartyLocation DirPartyLocation; taxRegistration taxRegistration; select * from DirPartyTable where DirPartyTable.Name == "TestName"; select * from DirPartyLocation where DirPartyLocation.Party == dirPartyTable.RecId; select registrationNumber from taxRegistration where taxRegistration.DirPartyLocation == dirPartyLocation.RecId; info(strFmt("reg %1",taxRegistration.RegistrationNumber));

Hints and steps to install Ax 2012 in Windows 8

Following are the Hints and steps to install Ax 2012 in Windows 8 1.Installation is easy but first of all you have to be aware regarding prerequisites and the platform, where you are going to run AX. a)  Microsoft .NET Framework Most Microsoft Dynamics AX components, including the Setup wizard, require .NET Framework 3.5 with Service Pack 1. For those components that require.NET Framework 4.0, it is listed as an additional requirement in this document. b)         Microsoft Windows® Installer 3.1 or Windows Installer 4.0 c)Additional requirements ·         .NET Framework 4.0 with the hotfix from Knowledge Base article number 2390372. ·         Microsoft SQL Server 2008 Native Client 2.First of all if you want to make your system stand alone, then you need to attach a domain with your client. for that thing you need to install windows server 2008R2/Windows server 2012 R2, then you can connect with this. or if you want to install directly in the Windows 8 then there is a tric

Services in AX 2012

Following Services in AX 2012 . You can see different services which is AIF Port service on following screenshot.

Fixed asset module setup Sharing in different entities in ax 2012

That is question mark for  Fixed asset module setup Sharing in different entities in ax 2012. Question is One entity fixed asset module setup ,can we share the setup to across multiple entities . Answer is You can share only customers and vendors ,because different assets will have for different companies. Finally you can not share.

Instance is getting Crush Frequently for some user in ax 2012

Problem-Facing issue that Instance is getting Crush Frequently for some user in ax 2012. Solution : 1. Checked database no issue on database side. 2. Cleared Auc file and usage data resetting. 3.This version mismatch will lead to unexpected Client behavior such as Crash according to our observation in most of our user cases. After correcting client version it works fine.

SSRS Report Execution error in ax 2012

Error:Getting below error SSRS Report Execution error in ax 2012 Solution: Do the below solution 1, Restart the AOS. 2.Delete the all the AUC and KTI files. 3.Delete records in table SysClientSession 4.Clear syslastvalue table. 5.Regenerate XppIL folder.

Account number for Transaction Type Withholding Tax (TDS) does not exist in Ax 2012

Getting this error on running withholding tax payment. All basic setup are ok. Account number for Transaction Type Withholding Tax (TDS) does not exist Please advice if you face this issue earlier. Step for form running and error screen.  Error is as below. 1.Checked in General Ledger > Setup > Withholding tax > Withholding tax Groups.  withholding tax group exists. 2. Posting type mentioned correct in Accounts used for withholding tax. 3. Account mentioned for Group for Account payable and receivable-General ledger > Setup > Withholding tax > Withholding tax codes.. 4. checked Company profile its ok. 5. checked General ledger > Setup > Withholding tax > Ledger posting groups. its ok. Please note previously it was processing correcting but this time not. what could be reason.Your advice can help to us and other who is facing the same issue. Its new issue.

Management Reporter Exception -The security timestamp is invalid with Ax 2012

Error Description Getting below error on opening Management reporter . This error logged in event-viewer. System.ServiceModel.Security.MessageSecurityException: The security timestamp is invalid because its creation time ('2015-10-01T10:50:06.777Z') is in the future. Current time is '2015-10-01T10:43:51.967Z' and allowed clock skew is '00:05:00'. Server stack trace:     at System.ServiceModel.Security.SecurityTimestamp.ValidateFreshness(TimeSpan timeToLive, TimeSpan allowedClockSkew)    at System.ServiceModel.Security.SecurityTimestamp.ValidateRangeAndFreshness(TimeSpan timeToLive, TimeSpan allowedClockSkew)    at System.ServiceModel.Security.ReceiveSecurityHeader.ReadTimestamp(XmlDictionaryReader reader)    at System.ServiceModel.Security.ReceiveSecurityHeader.ExecuteFullPass(XmlDictionaryReader reader)    at System.ServiceModel.Security.ReceiveSecurityHeader.Process(TimeSpan timeout, ChannelBinding channelBinding, ExtendedProtectionPolicy extendedP

Relation between HcmPosition , HcmWorker and DirPartyTable in ax 2012

Relation between HcmPosition , HcmWorker and DirPartyTable in ax 2012  1.DirPartyTable is equivalnt to Dir Person and PersonId is present in HcmWorker Table and for worker Position there is HcmPositionWorkerAssingment table in which u will find the HcmWorker id n HcmPosition id. 2.there is no direct relation b/w HcmPosition and HcmWorker where the relation is made through HcmPositionWorkerAssignment as #Xainu said i.e HcmPositionWorkerAssignment .worker = HcmWorker.RecId, and for HcmWorker and DirPartyTable - RecId of DirPartyTable is nothing but person field in HcmWorker 3.For hcmworker and hxm position: hcmworker has relation with hcmpositionworkerassignment and hcmpositionworkerassignment has relation with hcmposition and hcmposition has with hcmposition detail. For dirpartytable abd hcmworker: dirpartytable has relation with dirperson and dirperson has relation with hcmworker.

Posting Error in AR Module in Ax 2012 for customer Payment

Following Error on Posting .. Solution: This is because the Method Of Payment is PDC in your case and when making customer payments using PDC, click the Postdated checks tab on the customer payment journal tab and enter the PDC details there. In the Maturity date field, enter the future date when the postdated check is due for payment and that will solve your issue.