Electrical – getting shocked when the breaker and switch is off

electricallight-fixturelightingsafetywiring

enter image description here
I've recently added power to an outbuilding and wired in a light circuit. While adding another light fixture, the wire broke at the fixture so I was rewiring it. With the switch and breaker off, as I was connecting the wires to the fixture, I was shocked. I measured before the shock and after, no voltage. It's happened several times while rewiring the same fixture. (added) Not sure if I touch neutral but definitely felt it on the hot wire.

Here's how I'm wired. Switch is switching hot line. The ground is not used as there is no connector for it (simple light bulb fixture). Lights are in parallel. Other light fixture has an LED light in it.

Why is this happening, and why is it intermittent?

I've attached a picture of the layout (sorry, it's pretty crude)

Best Answer

Might be this.

This is called a multi-wire branch circuit, common on US split-phase though it can occur on any multi-phase-with-neutral service. Multiple phases or poles share a neutral, the neutral carries only differential current.

enter image description here

It has special rules and you see why.

  • Neutrals must be pigtailed, for the same reason as grounds - removing a device must not interrupt the neutral wire for other legs of the MWBC.

  • The breakers must be handle tied -- the issue is not common trip (overcurrent on one leg is no reason to shut off the other leg) -- but rather, to assure maintenance shut-off will shut off all legs. Even with neutrals pigtailed, a fault in the neutral wire will cause any leg to energize all other legs.