I can run long lengths on the outside of a house but as soon as I enter into the dwelling I must hit the panel/disconnect ASAP. Where I am they only want 3' or less.
This is because it's unfused. If the disconnect is outside they want it as close as possible to the meter. Same reason - unfused. I wired an addition a few months ago and had to move the meter - I tried to get the AHJ to let have 7' of SE cable inside the basement. Just enough to reach from new meter location to existing panel. NO go. Had to set an enclosed breaker then re-feed the existing panel with 4 wire and treat it as a sub. separating the grounds and neutrals.