replace_errors
Replace error cells in specific Power Query columns with custom values using column:value pairs. Appends Table.ReplaceErrorValues to the M query.
Instructions
Power Query Replace Errors: substitute a value for error cells in specific columns. Appends Table.ReplaceErrorValues to the table's M query. replacements is comma-separated as column:value, e.g. "Amount:0,Region:Unknown". valueType (text | number | logical | null) applies to all replacement values; for an all-columns replacement, list every column with the same value.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sessionId": "<sessionId>",
"table": "<table>",
"replacements": "<replacements>"
},
"name": "replace_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| sessionId | Yes | ||
| valueType | No | text | number | logical | null (default text) | text |
| replacements | Yes | column:value pairs, comma-separated | |
| partitionName | No | partition name (optional; defaults to the first partition) |