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, ...
Suggested Answer

How to resolve Synchronization database errors in d365fo?

(0) ShareShare
ReportReport
Posted on by 339

Hi experts,

I am getting synchronization database errors after full build of models.

Severity Code Description Project File Line Suppression State
Error at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.RunFullTableSync(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider) 0
Error at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler) 0
Error at Microsoft.Dynamics.AX.AosConfig.Config.InitInternal() 0
Error at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.RunSync() 0
Error Microsoft.Dynamics.AX.InitializationException: Failed to open SQL connection 0
Error at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.StartAosCode(SyncOptions syncOptions, String sqlConnectionString) 0
Error at Microsoft.Dynamics.AX.AOS.StartupInternal(String[] Arguments) 0
Error at Microsoft.Dynamics.AX.AOS.Startup() 0
Error at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.Run(String metadataDirectory, String sqlConnectionString, SyncOptions options) 0
Error at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.FullTableViewSync() 0
Error at Microsoft.Dynamics.AX.AosConfig.Config.InitOnce(Boolean isOfflineMode) 0
Error at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.FullSync() 0
Error at Microsoft.Dynamics.AX.AosConfig.?A0xe5e18e21.GetAosConfig() 0
Error syncengine.exe exited with code -1. 1

Please help me solve this.

Thanks,

with regards,

srihari.

I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Is your SQL Server service running? The error says that it can't open database connection.

    Can you access the database using SQL Server Management Studio?

  • Srihari.molaka Profile Picture
    339 on at

    Hi Nikolaos,

    Thanks for reply,

    Yes, SQL Server service is running, I'm able to connect database using SSMS.

    I tried restart of services and Vm but still same issue.

    with regards,

    srihari.

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Thanks.

    Was it working before?

    What changes were made in the system since it stopped working?

  • Srihari.molaka Profile Picture
    339 on at

    Hi Nikolaos,

    Thanks for your reply,

    Before it was working.

    I'm doing alignments of reports. I'm using print option of the reports to print. One of the report is not printing and other reports are getting print. So, i have done iis reset, but while doing Reset Usage Data i was getting SQL errors like below.

    session 1134 (Admin)  

     SELECT T1.CONFIGURATION,T1.LINKEDPINPROPERTY,T1.RECVERSION,T1.PARTITION,T1.RECID FROM FORMRUNCONFIGURATIONLINKEDPIN T1 WHERE (((PARTITION=5637144576) AND (DATAAREAID=?)) AND (LINKEDPINPROPERTY=?))  

     [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name 'DATAAREAID'.  

     Object Server Azure:    

     Cannot select a record in Table to store view to linked pins (FormRunConfigurationLinkedPin). The SQL database has issued an error.

    So, i tried full build, it is succeeded with  0 errors and when i'm doing synchronize database it is failed with errors.

    With regards,

    srihari.

  • Srihari.molaka Profile Picture
    339 on at

    Hi Nikolaos,

    Do you have any idea of how to open SQL connection?

    Thanks,

    with regards,

    srihari.

  • Sergei Minozhenko Profile Picture
    23,093 on at

    Hi Srihari,

    Have you built all models including standard ones? FORMRUNCONFIGURATIONLINKEDPIN  is part of "Application platform" model and looks like it's out of sync.

  • Srihari.molaka Profile Picture
    339 on at

    Hi sergei,

    Thanks for your reply,

    I have resolved this error now, but still synchronize errors are not resolved.

    with regards,

    srihari.

  • Suggested answer
    czeslawa-langowska Profile Picture
    on at

    Hi Srihari,

    Please look into db synch log to see on which exactly table we are failing.

    You can also open case with Microsoft support to help you further

    Kind regards 

  • Suggested answer
    Srihari.molaka Profile Picture
    339 on at

    Hi all,

    This issue is raised because of restoration of PU35 DB into PU33.

    After again restoration of same PU33 this is resolved.

    Thanks and regards.

    srihari

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

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 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