If AC, I'd suggest not.
With DC, the numbers will depend on 4mm v 6mm etc.
However, I ran my 4mm up and down the trusses and down the outside wall ( in two runs of 20mm conduit) into my comms cupboard.
I'd say a run of under 50ft.
You can, of course, expect some losses but the solar is...