Skip to content

Failed to sync complex forms and components of entry Entry #2234

@myieye

Description

@myieye

Trace.

exception.message
Failed to sync complex forms and components of entry Entry { Id = 0460f760-9cad-4643-b254-dc2946faf57a, DeletedAt = , LexemeForm = sbe: kulikuli tabudi, CitationForm = {}, LiteralMeaning = {}, MorphType = Phrase, Senses = System.Collections.Generic.List1[MiniLcm.Models.Sense], Note = {}, Components = System.Collections.Generic.List1[MiniLcm.Models.ComplexFormComponent], ComplexForms = System.Collections.Generic.List1[MiniLcm.Models.ComplexFormComponent], ComplexFormTypes = System.Collections.Generic.List1[MiniLcm.Models.ComplexFormType], PublishIn = System.Collections.Generic.List1[MiniLcm.Models.Publication] } exception.stacktrace MiniLcm.Exceptions.SyncObjectException: Failed to sync complex forms and components of entry Entry { Id = 0460f760-9cad-4643-b254-dc2946faf57a, DeletedAt = , LexemeForm = sbe: kulikuli tabudi, CitationForm = {}, LiteralMeaning = {}, MorphType = Phrase, Senses = System.Collections.Generic.List1[MiniLcm.Models.Sense], Note = {}, Components = System.Collections.Generic.List1[MiniLcm.Models.ComplexFormComponent], ComplexForms = System.Collections.Generic.List1[MiniLcm.Models.ComplexFormComponent], ComplexFormTypes = System.Collections.Generic.List1[MiniLcm.Models.ComplexFormType], PublishIn = System.Collections.Generic.List1[MiniLcm.Models.Publication] } ---> System.InvalidOperationException: changing complex form components is not supported, they should just be deleted and recreated at MiniLcm.SyncHelpers.EntrySync.ComplexFormComponentsDiffApi.Replace(ComplexFormComponent beforeComponent, ComplexFormComponent afterComponent) in /FwLite/MiniLcm/SyncHelpers/EntrySync.cs:line 298 at MiniLcm.SyncHelpers.DiffCollection.DiffOrderable[T](IList1 before, IList1 after, IOrderableCollectionDiffApi1 diffApi) at MiniLcm.SyncHelpers.EntrySync.SyncComplexFormComponents(Entry afterEntry, IList1 beforeComponents, IList1 afterComponents, IMiniLcmApi api) in /FwLite/MiniLcm/SyncHelpers/EntrySync.cs:line 103 at MiniLcm.SyncHelpers.EntrySync.SyncComplexFormsAndComponents(Entry beforeEntry, Entry afterEntry, IMiniLcmApi api) in /FwLite/MiniLcm/SyncHelpers/EntrySync.cs:line 69 --- End of inner exception stack trace --- at MiniLcm.SyncHelpers.EntrySync.SyncComplexFormsAndComponents(Entry beforeEntry, Entry afterEntry, IMiniLcmApi api) in /FwLite/MiniLcm/SyncHelpers/EntrySync.cs:line 75 at MiniLcm.SyncHelpers.ObjectWithIdCollectionReplaceDiffApi1.Replace(T before, T after) in /FwLite/MiniLcm/SyncHelpers/DiffCollection.cs:line 49 at MiniLcm.SyncHelpers.DiffCollection.DiffAndGetAdded[T,TId](IList1 before, IList1 after, CollectionDiffApi2 diffApi) in /FwLite/MiniLcm/SyncHelpers/DiffCollection.cs:line 79 at MiniLcm.SyncHelpers.DiffCollection.Diff[T,TId](IList1 before, IList1 after, CollectionDiffApi2 diffApi) at MiniLcm.SyncHelpers.EntrySync.SyncComplexFormsAndComponents(Entry[] beforeEntries, Entry[] afterEntries, IMiniLcmApi api) in /FwLite/MiniLcm/SyncHelpers/EntrySync.cs:line 35 at MiniLcm.SyncHelpers.EntrySync.SyncFull(Entry[] beforeEntries, Entry[] afterEntries, IMiniLcmApi api) in /FwLite/MiniLcm/SyncHelpers/EntrySync.cs:line 16 at FwLiteProjectSync.CrdtFwdataProjectSyncService.SyncInternal(IMiniLcmApi crdtApi, IMiniLcmApi fwdataApi, ProjectSnapshot projectSnapshot) in /FwLite/FwLiteProjectSync/CrdtFwdataProjectSyncService.cs:line 126 at FwLiteProjectSync.CrdtFwdataProjectSyncService.SyncOrImportInternal(IMiniLcmApi crdtApi, IMiniLcmApi fwdataApi, Boolean dryRun, ProjectSnapshot projectSnapshot) in /FwLite/FwLiteProjectSync/CrdtFwdataProjectSyncService.cs:line 81 at FwLiteProjectSync.CrdtFwdataProjectSyncService.Sync(IMiniLcmApi crdtApi, FwDataMiniLcmApi fwdataApi, ProjectSnapshot projectSnapshot, Boolean dryRun) in /FwLite/FwLiteProjectSync/CrdtFwdataProjectSyncService.cs:line 31 at FwHeadless.Services.SyncWorker.ExecuteSync(CancellationToken stoppingToken, Boolean onlyHarmony) in /FwHeadless/Services/SyncHostedService.cs:line 209 at FwHeadless.Services.SyncHostedService.ExecuteAsync(CancellationToken stoppingToken) in /FwHeadless/Services/SyncHostedService.cs:line 33

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions