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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to resolve "Cold Start" problem in dynamics 365 FO

(0) ShareShare
ReportReport
Posted on by 10

Hello Everyone!

We have a (Dev/Test/production) dynamics 365 environment that takes quite some to respond when opening it after some time (hours or days) of inactivity of the environment. The longer the inactivity is, the longer it takes that the environment starts responding.

When we perform API call from postman to dynamics same behavior comes up after hours of inactivity or doing build and sync. So my question to community is any idea how we can resolve this problem.?

All suggestions are welcome :) 

Thank you!

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at

    Hi Waqar,

    Actually, the application is building cache when you experience slowness at a "cold start". There is no other solution than keeping the environment alive. During a build, the cache will be flushed, so it again needs to build it.

    I have a large task recording with all common forms I use daily. After starting the application in the morning, I run the task recording on one screen while reading emails on another screen.

  • WaqarAhmadSystems Profile Picture
    10 on at

    Thank you Andre, this is very helpful. Actually we have to find its solution because customer never do this activity when starting the application in morning or after few hours of inactivity. Probably any script or any thing do you think we can write to keep it active?

  • André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at

    Hi Waqar,

    There is no option to keep cache alive when performing a build or sync. Some caches will be flushed during the night which is on purpose. Can you tell with what exact scenarios in the production environment this might be a business issue?

  • WaqarAhmadSystems Profile Picture
    10 on at

    Ah Great! Really thankful for your response.

    Our team working on creating services in dynamics 365 that will be exposed by the portal team in the end.

    My scenario is, we have a service that is used for sales order creation(there is no customized process for SO creation) and confirmation(separate service for this also) so in a postman when we hit the URL after a long time of inactivity it took a lot of time in returning the response. The same is the case when the portal team requests the related URL. This affects the client estimated waiting time for passing test criteria.

    What solutions do you think we can do for the optimization, we are already working on the code performance inside the team, which will surely reduce the time but it wouldn't resolve the problem of "Cold start".

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at

    Hi Waqar,

    You might consider creating a recurring Power Automate flow using the same data entities which is scheduled after flushing of caches and before the postman actions.

  • WaqarAhmadSystems Profile Picture
    10 on at

    This one might work, let me do a try. André Arnaud de Calavon thank you so much for your time and interest. :)

  • WaqarAhmadSystems Profile Picture
    10 on at

    Hi Andre Arnaud de Calavon - Thank you again!

    I have a question, is this user-specific or not? I am working on the above solution you have shared, I will post its stats once completed.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    301,037 Super User 2025 Season 2 on at

    Hi Waqar,

    Some caching is user specific, some not. Most of the cache is on the application server. There are some tempDB tables which holds data per user. That would be needed to build up per user.

  • WaqarAhmadSystems Profile Picture
    10 on at

    Hi André Arnaud de Calavon, I have created a recurring Power Automate flow and I have left the development environment for a night without performing any activity. And in next morning I sent the request to the postman, it's working fine without any delays.

    Thank you so much for your help!

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans