Enable bulk upload of categories, leagues, and teams in the club active season from a CSV template.
This guide documents the actual implemented behavior in the sport structure screen.
SportStructureScreensport_structure_import_template_en.csvRequired headers (recommended order):
entity,name,category,league
entity: row type. Allowed values:
categoryleagueteamname: main entity name.category: required only when entity=team.league: required only when entity=team.Import validates before insert:
entity and name must exist.entity=team, category and league are required.entity outside category|league|team is an error.category/league rows).If validation errors exist, import is not executed and an error summary is shown.
Before compare/insert:
trim is applied;Example:
" Senior A " -> "Senior A"entity,name,category,league
category,Senior,,
category,Youth,,
league,Gold,,
league,Silver,,
team,Senior Team A,Senior,Gold
team,Senior Team B,Senior,Silver
team,Youth Team A,Youth,Silver
Expected result:
entity,name,category,league
team,Team without league,Senior,
foo,Unknown entry,,
team,,Senior,Gold
team,Team with missing reference,U13,Gold
Expected errors:
team row without league;entity (foo);name;U13).Youth A, Youth B).This import covers:
Not covered yet:
player_profile loadHeader does not match. Verify first row.
File has only header or is empty.
Incomplete team row.
Add creation row in same CSV or create it in app first.