Changing the client visuals
Changing the dashboard company image
Purchase order Budget validation Error in Ax 2012
Solution:
Check the option in below menu.
Go to budgeting -Setup->Budget control->Budget control configuration
and make changes in projectsourcedoucuemntlineitemHelper class of projTranstype method by comparing class at Hotfix Ax 2012 R2 KB2921204
Workflow user and SQL Error in Ax 2012
Stopped workflow suddenly and throwing below error
Solution:
Give Full CIL then error not resolved.
We check batch job and showing there batch job for workflow work item and due date getting stopped with error shown above. I changed the status of job to waiting.System Administrator->inquiries->Batch Jobs
After that workflow error resolved.
OIOUBL – eInvoice for Denmark – DAX 2012 setup reviewed 01032016
This update gives the user a picture how to setup the eInvoice feature for Denmark.
OIOUBL DAX 2012_reviewed 01_03_2016
Find dimension values through X++ code
In some cases we may need to find dimension values and its name associated to an entity like customer, purchase order, project etc.. Below is a code sample to find dimension values and its name.
DimensionAttributeValueSetStorage dimStorage;
CustTable custTable;
Counter i;
custTable = CustTable::find(‘TestCustomer’);
dimStorage = DimensionAttributeValueSetStorage ::find(custTable .DefaultDimension);
for (i=1 ; i<= dimStorage.elements() ; i++)
{
info(DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name +”–>” + dimStorage.getDisplayValueByIndex(i));
}
Below is the sample output of above code

AX RTW – Hack to enable configuration mode
When downloading the AX RTW local VM from connect, you often want to disable some configuration keys. (Like catch weight etc). But now you will see the following warning;
“This form is read-only unless the system is in the maintenance mode. Maintenance mode can be enabled in this environment by running maintenance job from LCS, or using Deployment.Setup tool locally”
This warning is to prevent that configurations are enables/disabled, and that the system is set in maintenance mode. There are 2 ways of dealing with this.
- The proper way; Use the Microsoft.Dynamics.AX.Deployment.Setup.exe command; (Credits to Joris de Gruter)
Run this from command line:c:\packages\bin\Microsoft.Dynamics.AX.Deployment.Setup.exe –metadatadir c:\packages –bindir c:\packages –sqlserver . –sqldatabase axdbrain –sqluser AOSUser –sqlpwd AOSWebSite@123 –setupmode maintenancemode –isinmaintenancemode true
and then run the command with “false” at the end to turn if back off.
- The Hack way; Use the Microsoft SQL Server Management Studio, and edit the following record in the table dbo.SQLSystemvariables ; CONFIGURATIONMODE
After that, you can change configurations. But make sure you never
EVER do this in a production environment!
Hacking DAX’ing J

Understanding TFS with AX 2012 (IV)
Tracking down deployment errors in The New Dynamics AX
What’s New in General Ledger in the New Microsoft Dynamics AX, Part 2
AXAPTA - Find a table fields label value
Using the WMS mobile device menu via WHSWorkExecute
Setting up physical dimension on the item for warehouse
Buscar RecId de una combinación de dimensiones financieras
How to install and configure Windows AppFabric for AX 2012 Enterprise Portal in a multi-server web farm
When setting up AX 2012 Enterprise Portal (EP) in a multi-server web farm, then setting up AppFabric caching is required. This is for caching session info.
When installing SharePoint 2013 it is recommended to use the prerequisite installer to install AppFabric, ref https://technet.microsoft.com/library/jj219572(office.15).aspx section “Plan for the Distributed Cache service”.
Note: If you are using custom applications (DAX Enterprise Portal is a custom SharePoint application) in SharePoint Server 2013 which use the AppFabric client APIs, or are creating custom caches, you should create a separate AppFabric cache cluster to support your custom applications. Do not use the AppFabric cache cluster supporting your SharePoint Server 2013 farm. Run your separate AppFabric cache cluster for your custom applications on separate servers from the servers dedicated to your SharePoint Server 2013 farm.
Recommended setup:
Install SharePoint 2013 on the web servers in the farm.
Install and configure AppFabric cache on separate servers (cache cluster not running SharePoint), see https://technet.microsoft.com/en-us/library/dn473937.aspx section “Install and configure Windows Server AppFabric in a cluster”. Do only process 1-4.
Install EP in the web farm using host header, see https://blogs.msdn.microsoft.com/axsupport/2015/11/09/how-to-install-ax-2012-enterprise-portal-in-a-multi-server-web-farm/
If you already have a web server running EP on a web application that was not created with host header and you want to add more web servers to the farm, then you need to create a new web application using host header and then install EP on that web application.
On the EP servers you now need to configure the AppFabric caching. Continue with configure cache client, process 5 in this article https://technet.microsoft.com/en-us/library/dn473937.aspx , on each EP server running as web front end (WFE). Important: See the comment to the article. Do not install the cache client as this is already installed by the SharePoint prerequisite installer, but start from step 4.
When cache clients are configured, then continue with process 6 Validate deployment.
Examples to come.
Setup in test systems:
Install SharePoint 2013 on the web servers in the farm.
In this example I have used 3 web servers, 1 running SharePoint Central Administration (CA) and 2 Web Frontend (WFE).
Note: If you want to have a high availability cache cluster then you need at least 3 cache servers. Ref: https://msdn.microsoft.com/en-us/library/ee790974(v=azure.10).aspx
When installing SharePoint 2013 in the web farm, then SharePoint will configure a default cache cluster. To verify this, open a Windows PowerShell as Administrator on any of the web servers and execute the Use-CacheCluster command without parameters to set the context of your PowerShell session to the default cache cluster.
Then execute Get-CacheHost without parameters to list the host machines in the cache cluster.
Steps to configure AppFabric cache for Enterprise Portal. I did this on the CA server.
- Open a Windows PowerShell command prompt as an administrator.
- Execute the Use-CacheCluster command without parameters to set the context of your PowerShell session to the default cache cluster.
- Execute the New-Cache command to create a new named cache. Make a note of the name you specified. You will enter this cache name in the next procedure.
- SharePoint grants cache client access to the accounts in the groups WSS_ADMIN_WPG and WSS_WPG, so you don’t need to execute the Grant-CacheAllowedClientAccount command and specify the .NET Business Connector proxy (the account that is used by the Enterprise Portal application pool).
- Export the configuration with this command: Export-CacheClusterConfig and specify a name for the file.
- Open the file that you just created and add the following configuration to the <advancedProperties> section:
<transportProperties maxBufferSize=”1000000000″ /> - Execute the Stop-CacheCluster command to stop the cache.
- Import the configuration with this command: Import-CacheClusterConfig and specify the configuration file you just canged.
- Execute the Start-CacheCluster command to start the cache.
Next: Install EP in the web farm using host header, see https://blogs.msdn.microsoft.com/axsupport/2015/11/09/how-to-install-ax-2012-enterprise-portal-in-a-multi-server-web-farm/
After EP has been installed in the web farm, then continue with configuration of the AppFabric cache on the WFE’s.
If the CA server should not be acting as WFE, then stop the web application service on the CA server (SharePoint Central Administration > System Settings > Manage services on this server).
On each of the WFE’s (cache clients) do the following:
- In Windows explorer, open the C:\inetpub\wwwroot\wss\VirtualDirectories\<EPsite> folder. Ex: C:\inetpub\wwwroot\wss\VirtualDirectories\EP.contoso.com80
Locate the web.config file and create a backup of this file in a different location. - Open the web.config file in e.g. Notepad.
- Locate the <configSections>. Add the following section tag before the <sectionGroup name=”Microsoft.Dynamics”> tag:
<section name=”dataCacheClient” type=”Microsoft.ApplicationServer.Caching.DataCacheClientSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ allowLocation=”true” allowDefinition=”Everywhere” />
If these tags does not already exist in the web.config file, then you need to add it:
<sectionGroup name=”Microsoft.Dynamics”>
<section name=”Session” type=”Microsoft.Dynamics.Framework.BusinessConnector.Configuration.SessionConfigurationSection, Microsoft.Dynamics.Framework.BusinessConnector, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ />
<section name=”ServerState” type=”Microsoft.Dynamics.Framework.Portal.Configuration.ServerStateConfigurationSection, Microsoft.Dynamics.Framework.Portal, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ />
<section name=”AppFabricCaching” type=”Microsoft.Dynamics.Framework.Portal.Configuration.AppFabricConfigurationSection, Microsoft.Dynamics.Framework.Portal, Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″ />
</sectionGroup>Note: if you are running AX 2012 R2, then the version numbers in the above sections must be 6.2.0.0
- Add the following dataCacheClient tag to the web.config file after the </configSections>. Replace each instance of “Host_server_name” with the name of a cache server. Replace “default” with the name specified when you executed the New-Cache command.
<dataCacheClient>
<localCache isEnabled=”false” />
<hosts>
<!–List of hosts –>
<host name=” Host_server_name1″ cachePort=”22233″ />
<host name=” Host_server_name2″ cachePort=”22233″ />
<host name=” Host_server_name3″ cachePort=”22233″ />
</hosts>
</dataCacheClient>
<Microsoft.Dynamics>
<ServerState Enabled=”true” />
<AppFabricCaching CacheName=”default” />
</Microsoft.Dynamics>Note:
If the AppFabric Caching Service account (Control Panel > System and Security > Administrative Tools > Services) is running under a domain account then you need to add dataCacheServiceAccountType=”DomainAccount” to the dataCacheClient tag, ref: http://blogs.msdn.com/b/distributedservices/archive/2012/10/29/authenticationexception-in-appfabric-1-1-caching-for-windows-server.aspxExample:
Use the following procedure to verify that the AppFabric cache stores Enterprise Portal session on the server:
- On all the AppFabric servers, verify in the Windows Services console that AppFabric Caching Service is running.
- Open a Windows PowerShell command prompt as an administrator.
- Execute the Get-CacheStatistics command and specify the name used for the EP cache. The results should display all zeros.
- Open Enterprise Portal and open some edit pages.
- Execute the Get-CacheStatistics default command again and specify the name used for the EP cache. Verify that the cache displays values. This indicates that cache distribution is working.
Getting strange behavior working with CIL
Why can't I call an X++ delegate outside my class?
Check out the upcoming AX User Group (AXUG) Chapter Meetings!
Chapter meetings provide a great platform for you to share your AX questions and get answers. AXUG meetings are organized and led by AX Users just like you! Take a look at this blog from our AXUG Portland Chapter Leader talking about the value of meetings and what they have lined up in 2016: https://www.axug.com/blogs/gg-rowe/2016/02/19/upcoming-2016-oregon-portland-axug-chapter-meetings
Don’t miss these opportunities to learn and network with other Dynamics AX users in your area:
Arizona (Phoenix) Chapter Meeting (www.axug.com/phoenix) - Monday, March 7
AX-7 Presentation | Roundtable Discussions
Texas (Houston) Chapter Meeting (www.axug.com/houston) – Wednesday, March 9,
Getting the Most out of Dynamics AX Data with Power BI | Member Showcase: Team Industrial Services
Wisconsin (Milwaukee) Chapter Meeting (www.axug.com/milwaukee) – Thursday, March 10
AX Administration and Health Assessment | Sales Force Integration | Ask the Experts
Kentucky (Lexington) Chapter Meeting (www.axug.com/lexington) - Monday, March 14
Audits and AX: What to Expect and What You Need to Know | Management Reporter
Illinois (Chicago) Chapter Meeting (www.axug.com/chicago) - Tuesday, March 15
Life Cycle Service | How to Crack the BI User Adoption Code | Unique Networking Opportunities
Florida (Tampa) Chapter Meeting (www.axug.com/tampa) - Tuesday, March 15
Micro-Matic Member Showcase & Tour | Deep Dive Roundtable Discussions: Manufacturing, Finance, IT
Oregon (Portland) Chapter Meeting (www.axug.com/portland) - Thursday, March 17
Compile Accurate and Effective Dynamics AX User Requirements | An introduction to the new AX7, LCS, and VSO
Don’t see a meeting near you? Check out the complete list of upcoming AXUG Chapter Meetings! https://www.axug.com/engage/chapter