fix_bpa
Apply BPA rule autofixes to Power BI models by setting the exact TOM property, with a dryRun option to preview changes before applying.
Instructions
Apply a BPA rule's autofix - it sets the precise TOM property the rule names (e.g. Column.IsHidden, Column.IsAvailableInMDX, Measure.FormatString, strip EVALUATEANDLOG). With no objectName every matching object is fixed; with objectName only that one. dryRun=true (the default) lists exactly what WOULD change without modifying anything - run again with dryRun=false to apply. Rules with no safe automatic fix (e.g. DAX_USE_DIVIDE, AVOID_FLOATING_POINT_DATA_TYPES) are refused with guidance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | preview only (default true); set false to apply | |
| ruleId | Yes | the rule ID to fix, e.g. HIDE_FOREIGN_KEYS | |
| sessionId | Yes | ||
| objectName | No | a single object to fix (e.g. Sales[CustomerKey]); omit to fix all matching objects |