PlantOps BI

TMDL InvalidLineType: A Doc Comment Followed by a Blank Line

Skip to the fix

Symptom

A TMDL file fails to parse with:

InvalidLineType

Cause

A /// doc comment followed by a blank line. The parser rejects that combination.

Fix

Remove the blank line, so the /// comment sits directly above the object it describes. I did not test other comment styles.

How I Proved It

I hit this while debugging Fabric Git deploys of a TMDL model and recorded it as one of the findings from that work. My notes say the pattern is /// followed by a blank line giving InvalidLineType. They do not record a separate before-and-after test, so treat the fix as the obvious change to that pattern, not a tested explanation of the parser.