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,125

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,

  • Verified answer
    Sukrut Parab Profile Picture
    71,682 Moderator on at
    RE: Table failed to sync

    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.

  • Verified answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Table failed to sync

    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.

  • Yuji Profile Picture
    4,125 on at
    RE: Table failed to sync

    Hi Nikolaos,

    Yes, I did compile the referenced packages as well.

    thanks,

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Table failed to sync

    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?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans