If the pilot lights but the sparking continues either the pilot flame is too small or the pcb is faulty.
Untill the pcb detects the pilot via the igniter it will not stop sparking and will not operate the main gas solenoid.
Also check the main live and neutral are the correct way round.
If the pilot lights and the sparking stops the fault may be the main gas solenoid going open circuit.
Ian.
May 2007