bynk.agent.migrate_duplicate_assignment
Error A migrate step assigns the same store field more than once; each field takes at most one value per step (record-literal semantics).
A migration step builds the new state like a record literal: each store field takes at most one value. A bare field name in the body reads the value carried over, never an earlier assignment, so a second := to a field cannot build on the first and is refused. Combine the two into one expression of old and the carried fields. Two steps for one version is bynk.agent.migrate_duplicate.
Example
type CartV1 = { owner: String, total: Int }
migrate from 1 (old: CartV1) { totalCents := old.total totalCents := old.total * 100 // ✗ `totalCents` again}
migrate from 1 (old: CartV1) { totalCents := old.total * 100 // ✓ one value}In the Book
See also
- Every code in its category, Agents, on the diagnostic index.
bynk explain bynk.agent.migrate_duplicate_assignmentshows the same from the installed toolchain, without a network.