Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides PlantUML syntax reference for C4, sequence, class, activity, state, ER, component, deployment and use case diagrams.
Use this skill ↓74% 65%−9 ptsof test cases passed
Passed 15 of 23 test cases with the skill, and 17 of 23 without it.
3 of 3 safety checks passed
A catalogue of frequently encountered PlantUML syntax errors, their causes, and fixes. Organised by diagram type.
| Error | Cause | Fix |
|---|---|---|
| No diagram rendered | Missing @startuml / @enduml | Always wrap code in @startuml and @enduml |
| "Syntax Error?" message | Invalid character in diagram body | Check for unescaped special characters: {, }, <, > in labels |
| Blank output | Empty diagram body or only comments | Ensure at least one element is declared between @startuml and @enduml |
| "Cannot find skin" | Invalid skinparam name | Check spelling of skinparam names (case-sensitive) |
| Encoding issues | Non-ASCII characters in source | Use UTF-8 encoding; avoid copy-pasted special quotes (" ") — use straight quotes (" ") |
| Unexpected layout | Too many elements without layout hints | Add directional arrows (-down->, -right->) or use Lay_* constraints |
"File not found" on !include | Network issue or wrong URL | Verify URL is accessible; use !includeurl for remote files in older PlantUML versions |
| Error | Cause | Fix |
|---|---|---|
| "Unknown function Person" | Missing or wrong !include URL | Include the correct C4 library: !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Context.puml |
| Elements overlap | Conflicting Lay_* and Rel_* directions | Ensure every Rel_* direction is consistent with Lay_* constraints on the same pair (see layout conflict rules) |
| Random element placement | Using generic Rel without direction hints | Replace all Rel(a, b, ...) with Rel_Down(a, b, ...) or Rel_Right(a, b, ...) |
| Boundary renders empty | No elements inside boundary block | Add at least one element inside every System_Boundary or Container_Boundary |
| "Syntax error: )" | Wrong number of parameters in element macro | Check parameter count: Context elements take 3 params, Container/Component take 4 |
| Invisible relationships | Lay_* used where Rel_* intended | Lay_Right, Lay_Down are invisible — use Rel_Right, Rel_Down for visible arrows |
| Error | Cause | Fix |
|---|---|---|
| Missing participant | Participant referenced but not declared | Declare all participants before the first message |
| "Unknown arrow" | Invalid arrow syntax | Use -> (solid), --> (dashed), ->> (async), -->> (async dashed) |
| Misaligned activation | activate/deactivate mismatch | Match every activate with a deactivate, or use ++/-- shorthand |
| "alt" without "end" | Missing closing end for grouping block | Close every alt, opt, loop, par, group with end |
| Overlapping boxes | Box declarations conflict | Ensure box groupings don't overlap and all participants belong to at most one box |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus popular skills in the same category.