Connection problem, BUS or Wire? - Altium Designer
Your repeat definittion is wrong. Its repeat(scheetname, startindex, endindex) startindex can't be 0.

If you want to connect all LEDs to one connector you don't need all that repeat.
If you want many co nectors you need to move the connector to a sheet and repeet it. And dont name the net at the connector P1_Bus1 but P1_Bus.