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

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,160 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,160 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,710 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

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 565 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