Views:

Applies to Product - Dynamics 365 Project Operations


What’s happening?
Customers encounter authentication errors referencing the need for an access token when creating records in a Cloud Hosted Environment (CHE) that should sync to Project Operations. The error message typically states: "Unable to write data to entity msdyn_parties. Authentication failed with error Failed to authenticate for [URL]. Unable to get access token for [URL]."


Reason:
This behavior is expected for all CHE environments created after a specific date due to a security configuration by Microsoft. These environments no longer come integrated with the tenant’s Microsoft Entra ID by default, enhancing security by restricting certificate access to the tenant unless explicitly required for development.


Resolution:

  1. After deploying each CHE environment, follow the steps outlined in the document "Secure one-box development environments - Finance & Operations | Dynamics 365" for CHE environments.
  2. Complete the additional steps detailed in the "Dual-write setup from Lifecycle Services - Finance & Operations | Dynamics 365" for dual-write configurations.
  3. Ensure that the environment has access to the FnO environment via a Remote Desktop Protocol (RDP) connection, administrative access to the FnO environment, and access to Entra ID to register applications.
Once these steps are completed, the previously encountered authentication errors should no longer occur.