Loading...

How to Increase Default Time-out limit for Dual-write Sessions

How to Increase Default Time-out limit for Dual-write Sessions

Problem statement:

The issue of time-outs for dual-write sessions has been noticed in a couple of scenarios.

Analysis:

A default time-out of two minutes is not adequate for Dual-write sessions.

Solution:

Prerequisites: Dual-write core solution (Anchor solution for Dual-write Core) version 1.0.36. and later must be installed in Dataverse.

  1. Log in to https://admin.powerplatform.microsoft.com/home
  2. Navigate to Environments
  3. Select your Environment image.png

  4. Navigate to Resources and select Dynamics 365 apps

  5. Select Dual-write core solution
  6. Click on and then select details option image.png
  7. Validate version number

image.png

Lets understand first, the core of Dual-write

What is Dual-write?

Dual-write is an out-of-the-box infrastructure that allows near-real-time bidirectional data integration capability between Dataverse & Dynamics 365 Finance & Operations (ERP).

How does the data sync mechanism work in a Dual-write statement? By design, as soon as a transactions trigger gets initiated between Dataverse and D365 FO or vice versa immediately data starts getting synchronized unidirectional or bi-directional depending upon how you have set up Dual-write table maps.

Table maps are the construct that allows the mapping of Dataverse table fields with D365 FO entities fields.

Under the hood, it leverages the Odata technology with a tight coupling of transaction scope to avoid data inconsistency in both apps.

Configure the Dual-write for Developer (Tier-1) and customer-hosted hosted environment

  • Azure Active Directory (AAD) App registration

  • Open Azure portal and select Azure Active Directory > App registrations

  • Click on New registration

image.png Enter the following information:

  • Name: Enter a unique name for app
  • Account type : Select supported account types (single or multi-tenant)
  • Redirect URI : Keep this field blank

image.png

  • Copy Application (client) id value in a separate document, you will require this value later

image.png

  • Navigate to newly created Azure application, select Certificates & secrets option
  • Click on New client secret
  • Provide description and expiration date
  • Click on Add
  • Copy the generated key for later use

image.png

  • Copy the generated key for later use

image.png

  • Grant app permissions in D365 FO for Dataverse to call D365 FO apps
    a. Navigate to D365 FO System Administration > Users > Users
    b. Create new user as described in the below snap

image.png
c. Navigate to System Administration Module > Setup > Azure Active Directory applications to register Dataverse

image.png

Configure the virtual entity data source

This step will allow Dataverse to connect to D365 FO instance
a. Log in to https://admin.powerplatform.microsoft.com/home
b. Navigate to Advanced Settings > Settings > Administration > Virtual Entity Data Sources

image.png c. Select the data source finance and operations

image.png Enter the below information:

  1. Target URL Enter the URL of D365 finance and operations apps.
  2. OAuth URL Enter https://login.windows.net/.
  3. Tenant ID Enter your tenant, such as ABC.com
  4. AAD Application ID Enter the Application ID value that you copied earlier
  5. AAD Application Secret Enter the secret that copied earlier
  6. AAD Resource Enter 00000015-0000-0000-c000-000000000000. (This value is the value for the Azure AD application that represents finance and operations. It is always constant text.

image.png

  • Post-run activities
    a. Stop and rerun dual-write maps

image.png b. Contact Microsoft's support team to open a support ticket. Enter "Enable 5-minute transaction timeouts for dual-write DV to FinOps transactions" in the title and provide the tenant ID or organization ID. Your session time-out window will be set to five minutes by Microsoft

image.png

Sandbox and production environments

Contact Microsoft's support team to open a support ticket. Enter "Enable 5-minute transaction timeouts for dual-write DV to FinOps transactions" in the title and provide the tenant ID or organization ID. Your session time-out window will be set to five minutes by Microsoft.

Conclusion

Using the above step-by-step approach, you will be able to increase the default time-out limit from 2 minutes to 5 minutes.

Thank you for Reading - Let's Connect!

Enjoy my blog? For more such awesome blog articles - follow, subscribe and let's connect on LinkedIn , Twitter ,YouTube

Stay tuned!

Published on:

Learn more
Rakesh Darge's Blog
Rakesh Darge's Blog

Rakesh Darge's Blog

Share post:

Related posts

"Fix ‘This is Not a Unified Environment’ Error in D365 FO – Why Metadata Download Fails in Visual Studio"

🚨 “This is not a unified environment…” - A Story Every Dynamics 365 Finance & Operations Developer Should Hear Let me start with a real story...

4 months ago

PPAC Unlocked: Deploying Dynamics 365 ERP Environments with and without Demo Data

Let me start with a story… A few months ago, I was working with a customer who was planning to implement Dynamics 365 ERP. Their approach was ...

4 months ago

My Experience with AB-100: Earning the Microsoft Certified AI Business Solutions Architect Badge

The AI space is evolving rapidly, but very few certifications truly reflect how AI is designed, governed, and delivered in real business envir...

6 months ago

Demystifying the Copilot Sidecar Architecture in Dynamics 365 Finance and Operations ERP: A Solution Architect’s Guide

Welcome to the future of enterprise resource planning! If you're exploring the world of Dynamics 365 Finance and Operations (F&O), you've like...

1 year ago

Accelerate Your Development with Dynamics 365 FO Custom Batch Framework Templates

No matter the complexity of Dynamics 365 FO implementation, developing custom batch jobs is always necessary to accommodate tailored business ...

1 year ago

Improve Dynamics 365 FO Non-continuous Number sequence Performance: Tips and Strategies for Success!

Navigating performance issues in Dynamics 365 FO can be quite a challenge. There are numerous factors and considerations to take into account ...

1 year ago

How do we analyze Dynamics 365 FO Golden Copy configurations across the environments?

In the ever-evolving Dynamics 365 FO ecosystem, maintaining Golden Copy configurations remains one of the most discussed and reimagined aspect...

1 year ago

My Top 10 Learning of Copilot for Dynamics 365 Finance & Supply Chain Management

Hey Learners, 👏It seems that Microsoft Copilot, the AI-powered assistant, is gaining popularity worldwide. Customers and partners are trying ...

2 years ago

6 Prompts for resolving Tier 1 ERP table mapping challenges with Dynamics 365 Finance & Supply chain

Wouldn't it be great if we could simplify a few complex tasks to boost Dynamics 365 FO implementation productivity?There have been a number of...

2 years ago

Architecting For File Security : Solution Design Approaches to Encrypting and Decrypting File Data in Dynamics 365 Finance - Part I

The security of data is one of the most pressing concerns in the digital age. Whether you're sharing sensitive information over the internet, ...

2 years ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.