Wiring 24V Soleniod valve
simulate this circuit &ndash; Schematic created using CircuitLab
Figure 1. A more readable form of the schematic.
Your approach is correct and it should be obvious from the redrawn schematic that you simply are switching two solenoids on in parallel as you would with your house lights.
I suggest monitoring the voltage at the power supply with one, the other and both on. It may be that the power supply is current limited and shutting down on over current. Update your question with a link to the 24 V power supply datasheet.
We usually refer to relay &quot;contacts&quot; rather than &quot;ports&quot;.