Performance Issue – Maximum buffer size

09 Mar


We keep getting performance error when using forms in AX (CustTable, SalesTable, etc).  One common pattern is that tables using in these forms are heavily customized. More fields, joins are added.  Increasing buffer size did not help, clearing cache helped some scenarios but not all.  Some issues appeared and then went away.

Errors can be like the following :

The number of joins in the statement is 32. This exceeds the maximum of 26. Turn on exception for this warning to see the call stack.

The total, internal size of the records in your joined SELECT statement is 61176 bytes, but Microsoft Dynamics is by default performance-tuned not to exceed 49152 bytes.

It is strongly recommended that you split your table(s) into smaller units.
Alternatively, you have to specify a ‘Maximum buffer size’ value of 60 Kbytes or higher on the ‘Database Tuning’ tab page in the Microsoft Dynamics AX Server Configuration Utility. The default value is 24 Kbytes.



DEL_ fields are only needed when we do an upgrade from previous version. In our case, we are not doing an upgrade; therefore we can safely turn off those keys. Generally speaking turning these key off, it removes the physical data from the database. Hence, it reduces fields returned from select statements, which in this case is  a great performance improvement


If you have been running successfully for a reasonable timeframe (three months for example), then you can consider turning off the configuration key. It is recommended to turn these off in all environments.

1> Go to System administration > Setup > Licensing > License configuration
2> Turn these “Keep update objects” off
3> Sync and generate CIL


1 Comment

Posted by on March 9, 2015 in Development


Tags: , , , ,

One response to “Performance Issue – Maximum buffer size

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: