2016-07-19

[AX2012] No connection could be made because the target machine actively refused it 8201

Error: "No connection could be made because the target machine actively refused it 8201"
Solution: In database server, create client configuration to AOS Server make sure the Business Connector also point to AOS Server.

2016-04-26

[AX2012] No Fiscal Year Calendar Has Been Defined For Ledger

When posting Product Receipt the error show that Cannot create a record in Global address book and No fiscal year calendar has been defined for ledger. In this case, the user don't have access to class SubLedgerJournalizer method getFiscalCalendarPeriod. Give the access to the user privileges.



[AX2012] Error code: 38 = Filename too long

When print ssrs report VendInvoiceDocument the error showed up. It said that the filename is too long. After I checked the size of the file (my case: axapd.alt), the file was corrupted. In normal size the file size is 8KB but currently the size is 1KB. Stop the AOS and replaced the corrupted file with the normal file and then start the AOS. Well, it worked fine.

2016-04-12

[AX2012] Preview Pane on SalesTableListPage or PurchTableListpage Disapear

When you set a security on SalesTableListPage, PurchTableListPage, etc and you see no line preview pane, set the security access to line preview pane menu item. For example in SalesTableListPage form, set the security access to SalesTableListPagePreviewPane menu item.

2016-04-11

[AX2012] The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

Error message showed when SSRS report was opened : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

Solution: Check windows and router firewall.

2016-03-21

[AX2012] Ax error "A user session on the server could not be created. Try to start the client again. If the problem continues contact Ax Administrator"

I checked the Event viewer and found that the log file was full:
Object Server 01:  The database reported (session 1 (-AOS-)): [Microsoft][SQL Server Native Client 10.0][SQL Server]The transaction log for database
'AXDatabase' is full due to 'LOG_BACKUP'. . The SQL statement was: "UPDATE SQLSYSTEMVARIABLES SET VALUE='34' WHERE PARM='SYSVARID'"

Solution:
Stop the AOS.
Shrink database log file and start the AOS.

2016-03-20

[AX2012] Enable/Disable Buttons on PurchTable or SalesTable Form by Code

To enable or disable buttons on PurchTableListPage, PurchTable, SalesTableListPage or SalesTable form, you can edit on these classes:
  • PurchTableListPageInteraction
  • PurchTableInteraction
  • PurchTableInteractionHelper
  • SalesTableListPageInteraction
  • SalesTableInteraction
  • SalesTableInteractionHelper
You can add some additional code to enable or disable buttons, for example buttonConfirm in PurchaseTable form. Find this button name in PurchTableInteraction class and add your code.
These class can affect PurchTableListPage or SalesTableListPage forms.