the thing to do would be first to have a look at the soldered areas with a magnifying glass. make sure there's no cracks around the solder points, or heavy oxidation.
THen, if you'd just have switched the blue and yellow wires around, you would see if the spark problem moves with it. If it does, the dyna is probably bad. if the same 2 wires are still not sparking, then you have a bad coil or plug cap etc..