Little residential hvac help please. Newer unit leaks water once a year.

Why would you need a trap on this drain line? Doesn’t it just empty into a floor drain?

If water is coming out of the furnace somewhere other than the drain line, then the drain line is clogged. Take the drain pipe off the furnace and run a coat hanger inside the drain hole of the furnace.