Views:

Applies to Product - Dynamics 365 Supply Chain Management


What’s happening?
The customer is unable to build an X++ project in Visual Studio, receiving the error message: "X++ project cannot be built. Another build is in progress. The 'BuildTask' task returned false but did not log an error."
 

Reason:
This appears to be related to a missing cross-reference database for the user attempting the build. Additionally, there may have been complications due to the username length affecting the build process.
 

Resolution:

  1. Verify if another build is currently in progress. If so, wait for it to complete before attempting to build again.
  2. Check for any missing cross-reference databases for the user. If found, perform a database backup from another user and retry the build.
  3. If the issue persists, create a new model and project, then add a runnable class to the project and attempt to build again.
  4. If the error continues, download the assets again by navigating to Tools > Download FinOps Assets and try building the model once more.
  5. If the username is excessively long (e.g., 26 characters), consider recreating the username with a shorter length and retry the build process.
If these steps do not resolve the issue, further investigation may be required, and additional environment data may need to be collected.