Monday, June 30, 2025

D365 F&O error opening project in VS 2022 - The imported project was not found

 I recently switched to a new Tier 1 machine and VS 2022 for my F&O development. After pulling down all items in version control I received the following error:

The imported project "C:\Program Files (x86)\MSBuild\Microsoft\Dynamics\AX\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" was not found.

The fix for this was relatively easy.  Open the project file in Notepad++ (Or another text editor) and change this line:

<Import Project="$(BuildTasksDirectory)\Microsoft.Dynamics.Framework.Tools.BuildTasks.targets" />

To this:

<Import Project="$(BuildTasksDirectory)\Microsoft.Dynamics.Framework.Tools.BuildTasks.17.0.targets" />

Thursday, June 12, 2025

D365 F&O Tier 1 Update Failure Step 25 AOSService

When upgrading a tier 1 environment you could receive the following error:

GlobalUpdate script for service model: AOSService on machine

This usually means an issue with the DB sync, however, the log zip file doesn't always contain a file indicating the error.  Here are some steps to fix this issue:

  1. Ensure VS 2022 is fully upgraded.
    1. If you had to upgrade VS 2022, uninstall D365 F&O extension
    2. Re-install extension from K:\DeployablePackages\                                    [ID]\DevToolsService\Scripts\Microsoft.Dynamics.Framework.Tools.Installer.17.0
  2. Full compile of ALL modules
  3. DB Sync
  4. Restart environment
  5. 'Resume' upgrade



Wednesday, June 11, 2025

D365 F&O Service Update failure DevToolsService

Recently when upgrading tier 1, cloud hosted, environments from 10.0.41 to 10.0.42,43, or 44 I received the following error:
 
Update script for service model: DevToolsService on machine

On some of my environments I would receive an error indicating it couldn't find VS 2022 and others that had VS 2022 it was another error.  
In order to get past this I would do the following:

  1. If missing VS 2022, install it.
    1. If it is already installed, update it.
    2. Remove the D365 F&O extension if it is installed.
  2. Install D365 F&O extension from K:\DeployablePackages\[ID]\DevToolsService\Scripts\Microsoft.Dynamics.Framework.Tools.Installer.17.0
  3. In the same 'Scripts' folder, run the powershell command '.\AutoUpdateDevToolsService.ps1'
  4. If that is successfull, copy and make a duplicate of that command.
  5. Delete all code in the original .ps1 file and then resume your service update.