web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Access Token Issue During Dual-write Sync from F&O to CRM

(4) ShareShare
ReportReport
Posted on by 10
Hello everyone,
 

I have completed the Dual-write setup in the Cloud Hosted Environment, and the initial configuration was successful. I’m currently testing data synchronization from F&O to CRM.

 

However, I encountered an access token issue after creating a record in F&O. Please refer to the screenshot below for more details.

 
 
 
Has anyone faced a similar issue? Any suggestions on how to fix or regenerate the required access token from Azure?
I have the same question (2)
  • DP-05090648-0 Profile Picture
    2 on at
    Access Token Issue During Dual-write Sync from F&O to CRM

    Hello,

     

    I’m encountering the same error in my environment as well.

    We’ve tried practically every option we could think of. What’s odd is that the issue only occurs from F&O towards CRM — the other direction works fine.

     

    Both app users in F&O and CRM have full permission roles, and the health check reports everything as correct, though clearly it is not.

    Could we please get some support with this issue?

    We even attempted a workaround by creating a new app user with a certificate and adjusting it accordingly, but the problem persists.

     

    Reference:

    https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/dev-tools/secure-developer-vm#set-up-a-new-application-and-certificate-registration

     

    Thank you in advance.

  • Suggested answer
    DAnny3211 Profile Picture
    11,255 on at
    Access Token Issue During Dual-write Sync from F&O to CRM
    Hi,
    
    Thanks for bringing this up. The access token issue you're encountering during dual-write synchronization from Finance & Operations (F&O) to CRM—particularly when writing to the `msdyn_globalproducts` entity—suggests an authentication failure between environments.
    
    Here are a few steps that may help resolve the issue:
    
    1. **Verify application user roles**: Ensure that the application user in Dataverse has the correct security roles assigned, including any custom roles required for entity access.
    
    2. **Check permissions in F&O**: Confirm that the user or service principal used for dual-write has sufficient permissions in F&O to trigger synchronization.
    
    3. **Microsoft Entra ID configuration**: Make sure that the Microsoft-managed applications (like CDS and Dual-write integration apps) are correctly registered and visible in Microsoft Entra ID (formerly Azure AD).
    
    4. **Run health checks**: Use the Dual-write health check tool to identify misconfigurations or missing mappings. This can often highlight issues with entity relationships or authentication.
    
    5. **Entity mappings and job status**: Double-check that the dual-write job is active and that the entity mappings for `msdyn_globalproducts` are correctly configured and published.
    
    6. **Token expiration or caching**: If the issue is intermittent, consider reviewing token lifetimes and whether cached credentials might be causing failures.
    
    Please verify if these steps help resolve the issue or narrow down the cause.
    
    Thanks and best regards,  
    Daniele  
    **Note: This response was prepared with support from Copilot to ensure clarity and completeness.**
  • Komi Siabi Profile Picture
    13,032 Most Valuable Professional on at
    Access Token Issue During Dual-write Sync from F&O to CRM
    Can you run the Health check and let us know what you get?
  • Sohaib Cheema Profile Picture
    47,766 User Group Leader on at
    Access Token Issue During Dual-write Sync from F&O to CRM
     
    Microsoft has a few Microsoft managed applications listed in the Microsoft Entra ID applications list. 
    Can you check if all those are listed there and you have not removed any. Also make sure the user IDs associated with those users is enabled.
  • DGA205 Profile Picture
    61 on at
    Access Token Issue During Dual-write Sync from F&O to CRM
    Hi, We have the same problem, and We couldn't found a solution yet.
    We have checked that de application users are created, with the correct role and permission booth in dataverse and Finance and Operation.
     
    , could you solve the problem?
     
  • Navneeth Nagrajan Profile Picture
    2,156 Super User 2025 Season 2 on at
    Access Token Issue During Dual-write Sync from F&O to CRM
    Hi Kishore16,
     
    A few questions:
    1. Are there permissions to create the product in CRM through the dual write job from F&O? 
    2. Looks like the dual write job runs but the ability to create products in CRM isn't there?
     
     
     
  • Kishore16 Profile Picture
    10 on at
    Access Token Issue During Dual-write Sync from F&O to CRM
    Yes, it is running. The issue is not limited to the GlobalProduct entity—I'm encountering the same error when syncing any entity. It appears to be related to the live data synchronization process
  • Komi Siabi Profile Picture
    13,032 Most Valuable Professional on at
    Access Token Issue During Dual-write Sync from F&O to CRM
    Could you please confirm that the globalproduct map is running on Dual write setup page.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
DAnny3211 Profile Picture

DAnny3211 345

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 137 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 87 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans