AF09

A dotted path string contains an empty segment.

In development this reads:

Path 'user..email' has an empty segment; use the array form for empty keys.

The production message appends the offending path after the code.

What happened

Splitting 'user..email' (or 'user.') on dots produces an empty string between the dots. That is almost always a string-building bug, so the canonicalizer rejects it instead of quietly addressing a field named ''.

How to fix it

  • Fix the interpolation that built the path: `${prefix}.${key}` with an empty prefix is the classic case.
  • Addressing a key that genuinely is the empty string? Pass the array form, which needs no separator: form.setValue(['user', '', 'email'], value).

setValue patterns covers both path forms, including the segment-tuple that sidesteps separator pitfalls.