/ Dynamics

[AX7] Synchronize only project contents

Full Database synchronization

When using the new Microsoft Dynamics AX7 (Technical Preview) there is an option to perform a full database synchronization via Dynamics 'AX 7' > Synchronize database...
VS AX7 synchronize database menu

Selective synchronization

But there is no option on a table to synchronize only the selected table like in previous versions of AX.
To synchronize only certain tables, enable the database synchronization on project build.
After building a project only the views and tables included in the project will be synchronized.

For specific project

To enable synchronization on build only for a specific project, right click your project in the Solution Explorer, select properties (ALT+ENTER) and then set the option Synchronize Database on Build to True.

ax7 project properties sync

Default for all projects

To enable this by default for all projects, set the option Synchronize database on build for newly created project under Tools > Options > Dynamics 'AX 7' > Projects
VS AX7 sync newly projects on build

Hint: Trace synchronization errors

The rebuilt synchronization mechanism is truly better than the legacy one but sometimes it doesn't give you a hint when it fails. To find the source of the issue you can switch to legacy synchronization by modifying the settings file DynamicsDevConfig.xml.
Path:
C:\Users\Administrator\Documents\Visual Studio 2015\Settings\DynamicsDevConfig.xml
Note: This file is user specific!
Change the following line from

<FallbackToNativeSync>false</FallbackToNativeSync>

to

<FallbackToNativeSync>true</FallbackToNativeSync>
[AX7] Synchronize only project contents
Share this

Subscribe to robsCode