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, ...
Unanswered

Synchronize DB failed message

(0) ShareShare
ReportReport
Posted on by 309

Hi all,

During my attempt to Synchronize DB from Visual Studio, recently I got this strange error and saying it is failed ->

Validation step: Database synchronization started. Time: 12/05/2022 18:14:52
Unable to synchronize the database. Error = System.AggregateException: One or more errors occurred. ---> System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
at Microsoft.Dynamics.Framework.Tools.BuildTasks.SyncEngineWrapper.<StopDbConsumingServices>b__64_0(ServiceController srv)
at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at Microsoft.Dynamics.Framework.Tools.BuildTasks.SyncEngineWrapper.StopDbConsumingServices()
at Microsoft.Dynamics.Framework.Tools.BuildTasks.SyncEngineWrapper.Sync(CancellationToken cancellationToken)
at Microsoft.Dynamics.Framework.Tools.BuildTasks.SyncEngineWrapper.Sync(CancellationToken cancellationToken, IEnumerable`1 localElements, SyncMode syncMode, IDiagnosticSink& diagnosticSink)
at Microsoft.Dynamics.Framework.Tools.BuildTasks.AsyncBuildController.DoDBSynchronization(CancellationToken token, IEnumerable`1 elements, SyncMode syncMode, BuildTrigger buildTrigger)
---> (Inner Exception #0) System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
at Microsoft.Dynamics.Framework.Tools.BuildTasks.SyncEngineWrapper.<StopDbConsumingServices>b__64_0(ServiceController srv)
at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---

---> (Inner Exception #1) System.ServiceProcess.TimeoutException: Time out has expired and the operation has not been completed.
at System.ServiceProcess.ServiceController.WaitForStatus(ServiceControllerStatus desiredStatus, TimeSpan timeout)
at Microsoft.Dynamics.Framework.Tools.BuildTasks.SyncEngineWrapper.<StopDbConsumingServices>b__64_0(ServiceController srv)
at System.Threading.Tasks.Parallel.<>c__DisplayClass42_0`2.<PartitionerForEachWorker>b__1()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )<---
.
Validation step: Database synchronization completed (19294 ms). Time: 12/05/2022 18:15:12
Validation completed (20159 ms). Time: 12/05/2022 18:15:12

Anyone recognize what is this all about ? Build is completed successfully.

regards,

I have the same question (0)
  • GirishS Profile Picture
    27,827 Moderator on at

    Hi Axel,

    Does your custom model has any errors. Try to build the custom models and check for any errors.

    Thanks,

    Girish S

  • Axel Cage Profile Picture
    309 on at

    The build has no error. I'm Build from menu Extensions > Dynamics 365 > Build. That's why I also confused what happened.

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    Hi Axel Cage,

    Have you did the get latest?

    Hope you are doing the build by selecting the custom model checkbox from the build models from extensions. If yes then try doing sync and see if you are getting any errors.

    If yes try doing restart of all services and do the build and sync then see if errors come and then check the event viewer log.

    Thanks

    Bharani Preetham

  • AnithaEswaran Profile Picture
    2,032 on at

    Hi,

    Check if Batch service is running. If not, try starting it. Usually if there are any issues in AOT or system, batch service would not start and error will be logged in Event viewer.

  • Axel Cage Profile Picture
    309 on at

    Hi all,

    Thanks. It is finally resolved after restart my VM (which mean also restart AOS) I'm not sure what happened though.

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 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans