Thursday, August 27, 2015

The number of joins in the statement is 31. This exceeds the maximum of 26.

When modifying some base forms to include new tables you might get the error

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



In order to fix this we need to bump the max limit (default is 26.) We can do this by going to
System Administration > Setup > System > Server Configuration  Then go to the Performance Optimization tab and change the field 'Maximum number of tables in join' After making this change you may need to restart the aos in order for the changes to take affect.



This setting fixes the error but before making this change you should take a look at what you are trying to accomplish with this many joins. Can we get rid of some of the tables? Have we split the data into to many tables? Can this be accomplished another way? While having a form with this many joins can cause performance issues sometimes its your only option as default AX may already hit that 24-26 join mark so you are left with no option but to uptick the amount of joins allowed.

1 comment:

  1. There are certainly plenty of particulars like that to take into consideration. That may be a great point to deliver up. I supply the ideas above as normal inspiration however clearly there are questions just like the one you bring up the place a very powerful factor will probably be working in honest good faith. I don?t know if finest practices have emerged round issues like that, however I am positive that your job is clearly identified as a good game. Each boys and girls really feel the impression of just a moment’s pleasure, for the remainder of their lives. online casino slots

    ReplyDelete