If the trap arm is too long from the trap, it can cause it to siphon. If the trap arm is too short, the water flowing after the p-trap may run up the vent clogging it.