This post is machine-translated. The original post in german language can be found here.

Install and use Dynamics Application checker

A colleague of mine has brought to my attention the Dynamics Application Checker, which can be used to implement advanced best practice checks.

The used XQuery files can be downloaded from GitHub. How to use them I try to describe here.

  1. Install BaseX (and Java if needed)
  2. Download and extract files from GitHub
    The files must be unpacked into the corresponding directory, e.g. C:\AOSService\PackagesLocalDirectory\Bin\AppCheckerRules
  3. Build model
    In Visual Studio, under Dynamics 365 > Builds models, select the desired model and select the Run App Checks option:
  4. Check result
    Now corresponding entries should appear in the ErrorList if BP deviations have been detected.
    Error list

    In addition, a file AppCheckerResult.xml is stored in the packages directory, where the detected deviations can also be viewed.


During my first attempts I always had the following error message on my screen:

Process: basex.bat exited with code 1.
  basex.bat: Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx15000m
The specified size exceeds the maximum representable size.

Cause was an unclean basex.bat file in the BIN directory of BaseX, e.g. under C:\Program Files (x86)\BaseX\bin

The file looked like this, where the marked part had to be deleted:


These post applies to following version:
Dynamics 365 for Finance and Operations

Add comment


Posts of the actual month
November 2023
© 2006-2023 Heinz Schweda | Imprint | Contact | German version | Mobile version
In order to provide you with better service, this site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies.