What you have is not a Diagnostic Code, it is an Event. It's important to understand the difference.
A Diagnostic Code occurs when a sensor/sender/switch that is desigend to monitor a particular parameter or similar malfunctions.
An Event occurs when the diagnostic system is working fine but a parameter goes outside of the expected/desired range. As in this case the plugged filter switch is closing due to back pressure in the filter.
I changed the filter and bypass switch. No change.
Which bypass switch did you change.? I see two bypass switches on that filter head.
What oil are you using in that system.?
Are you using a Cat filter.? What Part Number.?
Did you squeeze the filter media in a vice to remove all the oil before inspecting for particles.?
Are you doing oil analysis.?
Is the transmission temperature gauge working correctly.? The E329 Event is temperature-dependent on that sensor.