fix_broken_visuals
Repair visual bindings that reference renamed or moved model fields by mapping old references to new ones. Fixes queries, sorts, filters, and conditional formatting for Power BI reports.
Instructions
Repair visual bindings that point at RENAMED or MOVED model fields (found by scan_broken_refs). repairMap = JSON {"Old Table[Old Field]":"New Table[New Field]", ...}. Rewrites the same binding paths set_visual_fields writes - prototypeQuery From/Select (aliases repointed when the table changed), projections queryRefs, sorts, visual filters, and the conditional-formatting / chrome bindings - plus page and report filters. Returns one row per changed target and lists any repair key that never matched.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repairMap | Yes | JSON object mapping broken refs to replacements: {"T[F]":"T2[F2]", ...} | |
| reportSessionId | Yes |