Unable to find appropriate service endpoint information in the configuration object – Install Reporting Service extension Dynamics AX

When you try to install Reporting Service Extension on Dynamics AX, you might get the following error.  “An  occurred during setup of Reporting Services extensions. Reason: Unable to find appropriate service endpoint information in the configuration object”     Why : Because the BI service is not deployed. Solutions: try the following.   1. Open AX > System…

2

extension pattern in .NET – Decorate the class with attributes

 Consider a simple class hierarchy with an abstract base class and 3 derived classes. A typical implementation of a factory would be a static method on the base class, like this                         Problem: The above pattern is bad in different ways        1. Base classes must have references to the sub classes and that…

4

AX- create Forms using classes

Design AX Forms: 1. Using AOT. (right click AOT>Forms nodes and add a new form. You add controls under ‘Design’ sub node and tables under ‘Data Source’ subnode) OR 2. Using X++ code to dynamically create and display a form.   X++ Dynamic Forms:  1. FORM and FORMRUN classes can be used to create forms…

0

AX – Views – using AOT morphx

Views in Ax : are used to get data from database that is stored in the memory on the layer in which view is instantiated. – are like virtual tables that use fields and rows to represent the data record. – data in a View is not stored as data base object but is dynamically created…

0

Ax – Create Dynamic Query – using X++

 X++ Dynamic Queries: use Query classes to create dynamic queries. How? you need the following classes Query; QueryRun; QueryBuildDataSource; QueryBuildRange; QueryBuildLink CodeSample1: x++ code to dynamically create a query. verify the results in the Infolog.     CodeSample2: will show how to create a node on AOT. In the query example I am showing how to…

1

Ax – Create Static Query – using AOT Morphx

 Queries – a (one) way of retreiving data from the data base. How to get data in AX: 1. Views, 2.Queries  3.Select statement. Why Queries?   helps when ranges or values are not known until run time. Where used?   in forms + reports + places where data is retreived from multiple data sources. How to create?         …

0

The type initializer for ‘<Module>’ threw an exception

Issue: when you try to launch visual studio throw command prompt you might run into the following error   Reason: Because of conflict with the .Net versions the error is thrown. Solution: Clear the vairable complus_version or set the complus_Version to latest .NET version. In my case I changed from v.2.0.xxxx. to v4.0.30319. you can…

2

DllRegisterServer failed with the error code 0x80040201

  Issue: Often when you try to register a DLL on Win7 or windows server 2008, you run into an error      “The module scmt.dll was loaded but the call to DllRegisterServer failed with the error code 0x80040201”   Why:  UAC (user account control) limits the ability to register the DLL. so you have to…

27

SQL Error: The operation cannot be performed on a database with database snapshots or active DBCC replicas

  Usually Database snapshots provide static view of the source database, and are mostly read only view of the database.   However sometime when you try to restore the database with snapshots we may get the following error SQL message: Error: “Msg 5094, Level 16, State 2, Line 2 The operation cannot be performed on a database with database…

1

Enable Multiple Desktop sessions for windows 2008 or Windows 7

1. Open the Start > All Programs > Administrative tools > Server Manager   You need to install Terminal Services for multiple session to work. Complete the Wizard all the way till finish and it will prompt you to restart.                          2. Click on Start > Run        Type  “gpedit.msc” and click Enter…

4