NOT ENOUGH SPARK FROM COIL!!
At 40.000 volts - spark from coil should easily jump a 1 inch air gap to metal ground.
Suspect failing ignition coil.
Assuming you have coil wire placed in distributor cap at correct position.
Good luck!
RepairPal Certified shops can diagnose and repair your 1999 GMC Yukon. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.