Rules / Error Prevention

Avoid invalid characters in names

error AVOID_INVALID_NAME_CHARACTERS · ported · scope: Table, Measure, Hierarchy, Level, Perspective, Partition, Column, CalculatedColumn, CalculatedTable, CalculatedTableColumn, Role, CalculationGroupTable, CalculationItem

What it checks

Object names containing a control character other than whitespace. Tabs and line breaks are allowed here and are covered by SPECIAL_CHARS_IN_OBJECT_NAMES.

Why it matters

A control character in a name is invisible in Power BI Desktop and fails the deployment: the service rejects the metadata and the publish stops with an error that names no object. Every DAX reference and report binding also has to reproduce the hidden character exactly, so the object is fragile even before it is deployed.

How to fix it

Rename the object in Desktop, or edit the name in the TMDL file. A text editor that shows invisible characters makes it easy to spot.

Quirks

Links

Check a model for this Improve this page