Views:

Applies to Product - Dynamics 365 Project Operations


What’s happening?
The update script for the service model AOSService on a machine fails during the service update process.


Reason:
The failure occurs due to the requirement to upgrade to the latest Visual C++ redistributable package. Additionally, errors may arise from missing processes or scripts during the deployment.


Resolution:

  1. Upgrade Visual C++ Redistributable:
  2. Upgrade to the most recent Visual C++ redistributable package to resolve the initial failure at step 20. Refer to the Microsoft documentation for guidance on updating the environment.
  3. Restart the Machine:
  4. If the update fails again, abort the operation and restart the machine from Azure (not from Windows or LCS).
  5. Manual Execution of Scripts:
  6. If issues persist, manually execute the failing scripts:
    • Open a PowerShell prompt as Administrator.
    • Navigate to the directory containing the deployable packages.
    • Create a temporary directory for log files.
    • Execute the script with the command: script -LogDir <Log directory>. This process may take 75 to 100 minutes.
    • Once the manual execution succeeds, back up the original script file, clear its contents, and save it as an empty file.
  7. Resume Deployment:
  8. After clearing the script contents, resume the update through the Lifecycle Services (LCS).
  9. Address Further Errors:
  10. If additional errors occur during the update, such as failing queries related to the Retail table, follow the specific mitigation steps provided for those errors, ensuring to check the logs for any relevant details.
By following these steps, the update process should successfully complete.