Quantcast
Channel: Microsoft Dynamics 365 Community
Viewing all 10657 articles
Browse latest View live

Changing the client visuals

$
0
0
With the new Dynamics AX client being HTML we get a nice capability for the user to change the color and how much information is displayed. Here is a quick look at how a user can do this. Cheers...(read more)

Changing the dashboard company image

$
0
0
On the main dashboard you have the capability to show an image for the company that you are logged into. This can help with branding but also if you have access to multiple companies then seeing the logo...(read more)

Purchase order Budget validation Error in Ax 2012

$
0
0

Problem:
Purchase order Budget validation Error in Ax 2012 coming during purchase invoice . This PO is previous year purchase order on which period is stopped/closed.

"The accounting date for the invoice must be in the same fiscal year as the related purchased order. Run the purchase order year-end process or change the date to the current fiscal year"


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

$
0
0
Error description:
Stopped workflow suddenly and throwing below error

Cannot select a record in Work items (WorkflowWorkItemTable). User: abc, Check and Approve Purchase Order.
The SQL database has issued an 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

Find dimension values through X++ code

$
0
0

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

Dim

 


AX RTW – Hack to enable configuration mode

$
0
0

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.

  1. 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.

  2. 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)

$
0
0
So, at this point, you can ask yourself the question why would the Version Control Synchronize in AX fail from time to time? Because it does happen, every now and then. The answer is that, most of the...(read more)

Tracking down deployment errors in The New Dynamics AX

$
0
0
When we started using AXUtil.exe in Dynamics AX 2012 it was a bit scary in the beginning but I consider it easy to use after having spent hours upon hours massaging model files on different installations...(read more)

What’s New in General Ledger in the New Microsoft Dynamics AX, Part 2

$
0
0
The 2016 Dynamics Technical Conference was a great experience! The AX community is very excited to see the changes Microsoft has made to the platform, making life easy for implementation consultants with many new tools that are user friendly, limiting ...read more

AXAPTA - Find a table fields label value

$
0
0
There are two ways to find a table field's label value: If fields label value derived from directly fields extended data type: if (curext()=="krc" && this.RBOInventItemGroupId ==...(read more)

Using the WMS mobile device menu via WHSWorkExecute

$
0
0
This capability was in AX2012 with the wms and I was teaching a course on the weekend and Steve from RSM reminded me about it at just the right time, If you are working with new Dynamics AX and want to...(read more)

Setting up physical dimension on the item for warehouse

$
0
0
If you are working with the warehouse management they likely you will want to setup physical dimensions for the products so that you can use the load planning functions for fitting product into a container...(read more)

Buscar RecId de una combinación de dimensiones financieras

$
0
0
En ocasiones necesitamos importar datos, como cuentas contables, las cuales tienen asignada una dimensión financiera. Dicha dimensión financiera normalmente nos la facilitan en formato texto...(read more)

How to install and configure Windows AppFabric for AX 2012 Enterprise Portal in a multi-server web farm

$
0
0

 

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.

  1. Open a Windows PowerShell command prompt as an administrator.
  2. Execute the Use-CacheCluster command without parameters to set the context of your PowerShell session to the default cache cluster.
  3. 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.
  4. 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).
  5. Export the configuration with this command: Export-CacheClusterConfig and specify a name for the file.
  6. Open the file that you just created and add the following configuration to the <advancedProperties> section:
    <transportProperties maxBufferSize=”1000000000″ />

  7. Execute the Stop-CacheCluster command to stop the cache.
  8. Import the configuration with this command: Import-CacheClusterConfig and specify the configuration file you just canged.
  9. 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:

  1. 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.
  2. Open the web.config file in e.g. Notepad.
  3. 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

  4. 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.aspx

    Example:

 

Use the following procedure to verify that the AppFabric cache stores Enterprise Portal session on the server:

  1. On all the AppFabric servers, verify in the Windows Services console that AppFabric Caching Service is running.
  2. Open a Windows PowerShell command prompt as an administrator.
  3. Execute the Get-CacheStatistics command and specify the name used for the EP cache. The results should display all zeros.
  4. Open Enterprise Portal and open some edit pages.
  5. 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

$
0
0
Last days I was working with some CIL involved tasks, and I noticed some strange behavior: the code was not executing as it should be (seemed the Generate CIL) didn't work, had to perform Generate...(read more)

Why can't I call an X++ delegate outside my class?

$
0
0
We recently got this question from a customer, and it seems like a fair question. To elaborate on the question: Say I define delegate in a class, making it public. Why can't I then call the delegate...(read more)

Check out the upcoming AX User Group (AXUG) Chapter Meetings!

$
0
0

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

Code upgrade to the new Dynamics AX (RTW) is available

$
0
0
For partners and customer that have been waiting to upgrade their Dynamics AX code base to the RTW version of the new Dynamics AX (upgrade from AX7 CTP versions or from Dynamics AX 2012) , the code upgrade...(read more)

FormButtonGroupControl object does not have method “realValue”

$
0
0

 

Hi Guys,

While accessing realEdit control methods in code system gives below error runtime.

Error:

image

Possible solution:

Although there are not such issue with your code. Its just cache issue. Try to clear cache and compile your whole project.

This issue must be fixed now.

Thanks-

Harry

Viewing all 10657 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>