A common error with structures with multiple cases is neglecting to complete the wiring in all the cases. When you wire to an object outside the structure, an error results if you do not connect a source in all the cases.
Consider configuring the tunnels to wire the input and output tunnels automatically in unwired cases.