Skip to content

The target location specified by path segment 'Abbreviation' was not found. #2625

Open

Description

@myieye

I think I got this exception, because my app was not up to date. I believe it's essentially the "Opaque change" scenario except for a known type, but unknown property, so needs some sort of special handling (e.g. model versioning?)

Error: SystemTextJsonPatch.Exceptions.JsonPatchException: The target location specified by path segment 'Abbreviation' was not found.

at SystemTextJsonPatch.Exceptions.ExceptionHelper.ThrowJsonPatchException(JsonPatchError jsonPatchError)
   at SystemTextJsonPatch.Internal.ErrorReporter.<>c.<.cctor>b__2_0(JsonPatchError error)
   at SystemTextJsonPatch.Adapters.ObjectAdapter.Add(String path, Object value, Object objectToApplyTo, Operation operation)
   at SystemTextJsonPatch.Operations.Operation`1.Apply(TModel objectToApplyTo, IObjectAdapter adapter)
   at LcmCrdt.Changes.JsonPatchChange`1.ApplyChange(T entity, IChangeContext context)
   at SIL.Harmony.Changes.Change`1.ApplyChange(IObjectBase entity, IChangeContext context)
   at SIL.Harmony.SnapshotWorker.ApplyCommitChanges(SortedSet`1 commits)
   at SIL.Harmony.SnapshotWorker.UpdateSnapshots(SortedSet`1 commits)
   at SIL.Harmony.DataModel.UpdateSnapshots(CrdtRepository repo, SortedSet`1 commitsToApply)
   at SIL.Harmony.DataModel.SIL.Harmony.ISyncable.AddRangeFromSync(IEnumerable`1 commits)
   at SIL.Harmony.DataModel.SIL.Harmony.ISyncable.AddRangeFromSync(IEnumerable`1 commits)
   at SIL.Harmony.DataModel.SIL.Harmony.ISyncable.AddRangeFromSync(IEnumerable`1 commits)
   at SIL.Harmony.SyncHelper.SyncWith(ISyncable localModel, ISyncable remoteModel, JsonSerializerOptions serializerOptions)
   at SIL.Harmony.DataModel.SyncWith(ISyncable remoteModel)
   at FwLiteShared.Sync.SyncService.ExecuteSync(Boolean skipNotifications)
   at FwLiteShared.Projects.CombinedProjectsService.<>c.<<DownloadProject>b__16_1>d.MoveNext()
--- End of stack trace from previous location ---
   at LcmCrdt.CrdtProjectsService.CreateProject(CreateProjectRequest request)
   at LcmCrdt.CrdtProjectsService.CreateProject(CreateProjectRequest request)
   at LcmCrdt.CrdtProjectsService.CreateProject(CreateProjectRequest request)
   at LcmCrdt.CrdtProjectsService.CreateProject(CreateProjectRequest request)
   at FwLiteShared.Projects.CombinedProjectsService.<>c__DisplayClass16_0.<<DownloadProject>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at FwLiteShared.Projects.CombinedProjectsService.DownloadProject(ProjectModel project)
   at FwLiteShared.Projects.CombinedProjectsService.DownloadProjectByCode(String code, LexboxServer server, Nullable`1 userRole)

Activity

  1. myieye commented on Oct 7, 2026

    @myieye
    CollaboratorAuthor

    With that in place the next step might be:

    • Simply catching this exception
    • Potentially being able to determine at runtime whether Data Model versioning explains the exception and re-throwing if that's not the case
  2. added
    🔩 FW Lite CoreShared MiniLcm, CRDT and sync libraries that ship in both FW Lite and FwHeadless
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Data bugbugSomething isn't working🔩 FW Lite CoreShared MiniLcm, CRDT and sync libraries that ship in both FW Lite and FwHeadless

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions