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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Dual Write - Organization does not match actual Dataverse Organization

(5) ShareShare
ReportReport
Posted on by 20
Hello,
 
We have recently completed an environment restore from both CE and F&O environments over to Test instances. Within Dual Write bot connections look to be pointing to the correct newly restored environments however get the below error when saving a record in Dataverse. 
 
 
Oddly our Service Administrator account can save records but Users with the System Administrator security role cannot. Any help would be greatly appreciated.
I have the same question (0)
  • CU13031731-0 Profile Picture
    2 on at
    Hellow, can you fix it?
  • Griet Profile Picture
    31 on at
    We are experiencing the same error after a data restore. Were you able to resolve this issue?
  • DB-23071443-0 Profile Picture
    2 on at
    This fixed it for me
  • Suggested answer
    DAnny3211 Profile Picture
    11,407 Super User 2026 Season 1 on at

    Hi,

    This error typically occurs when the Dual Write Secure Configuration still references the original Dataverse environment ID after a restore. Since the organization ID in the SecureConfig doesn’t match the current Dataverse environment, Dual Write throws a validation error.

    Here’s what you can try:

    1. Reset the Secure Configuration:

      • Go to F&O > Dual Write > Linked Environments.
      • Unlink and then relink the environment to refresh the SecureConfig with the correct organization ID.
    2. Re-run the Dual Write setup wizard:

      • This will regenerate the SecureConfig and re-establish trust between the environments.
    3. Check the SecureConfig table in Dataverse:

      • If you have access, inspect the msdyn_dualsecureconfig table and verify that the OrganizationId matches the current environment.
      • If not, you may need to delete and regenerate the config (only do this if you're familiar with the implications or under Microsoft support guidance).
    4. Permissions:

      • The fact that the Service Admin can save records suggests a permission or plugin execution context issue. Make sure the affected users have the correct roles and that no custom plugins are enforcing organization checks.

    If the issue persists, I’d recommend opening a support ticket with Microsoft, especially if this is a production-like test environment.

    Hope this helps!

    Best regards,
    Daniele

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

#3
ManoVerse Profile Picture

ManoVerse 45 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans