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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Table failed to sync

(0) ShareShare
ReportReport
Posted on by 4,131

Hi,

When I tried to sync the database, I got the error 

>>>>>>>>>>>><<<<<<<<<<<<<

"Table Sync Failed for Table: TRXInventTransStaging. Exception: System.InvalidOperationException: Sequence contains no matching element

    at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)

    at Microsoft.Dynamics.AX.Data.Management.IncrementalSyncTableSchemaBuilder.HandleSystemFieldsProperty(AxTable newTable, AxTable oldTable, IList`1 addFields, IList`1 dropFields, IList`1 modifyFields, Int32 tableId)

    at Microsoft.Dynamics.AX.Data.Management.IncrementalSyncTableSchemaBuilder.CompareField()

    at Microsoft.Dynamics.AX.Data.Management.IncrementalSyncTableSchemaBuilder.CompareTableSchema()

    at Microsoft.Dynamics.AX.Data.Management.ManagedSyncTableWorker.ExecuteModifyTable(AxTable newTableSchema, AxTable oldTableSchema, Int32 tableId)

    at Microsoft.Dynamics.AX.Data.Management.ManagedSyncTableWorker.ModifyTable(AxTable newTableSchema, Dictionary`2 oldTableSchemaDictionary)

    at Microsoft.Dynamics.AX.Data.Management.ManagedSyncTableWorker.SyncIncremental(IList`1 requests, IList`1 dropEntities)

  AOS database sync failed.       Microsoft.Dynamics.AX.Framework.Database.TableSyncException: AOS database sync failed.     Microsoft.Dynamics.AX.Framework.Database.TableSyncException: Incremental sync did not complete successfully. Error: AggregateException:One or more errors occurred.

Inner exceptions:

InvalidOperationException:Sequence contains no matching element.

    at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.<>c.<RunPartialTableSync>b__18_1(Tuple`2 result)

    at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.ExecuteWithinAOS(SyncOptions syncOptions, String sqlConnectionString, IMetadataProvider metadataProvider, Func`1 func, Action`1 errorHandler)

    at Microsoft.Dynamics.AX.Framework.Database.Tools.LegacyCodepath.RunPartialTableSync(SyncOptions options, String sqlConnectionString, IMetadataProvider metadataProvider)

    at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.PartialTableViewSync()

    at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.PartialSync()

    at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.RunSync()

    at Microsoft.Dynamics.AX.Framework.Database.Tools.SyncEngine.Run(String metadataDirectory, String sqlConnectionString, SyncOptions options)

  Process: syncengine.exe exited with code -1.

Database synchronization failed. You may have to do a full build of the package 'TRX' and all of its dependent packages.

Validation step: Database synchronization completed (73487 ms).

Validation completed (73493 ms).

>>>>>>>>>>>>><<<<<<<<<<<<<

Thanks,

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

    The error message suggests: "You may have to do a full build of the package 'TRX' and all of its dependent packages.".

    Did you already try that?

  • Yuji Profile Picture
    4,131 on at

    Hi Nikolaos,

    Yes, I did compile the referenced packages as well.

    thanks,

  • Verified answer
    nmaenpaa Profile Picture
    101,172 Moderator on at

    The error comes from a data entity staging table. You could try to regenerate the staging table (by right clicking the entity). Then do a full build of your model, and db sync.

  • Verified answer
    Sukrut Parab Profile Picture
    71,741 Moderator on at

    If you changed anything fields data type in the entity make sure to regenerate staging table and then try sync. Also try to find out more details from the event viewer.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 461 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 428 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 428

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans