I have had the same problem.
Bought a new sensor and plugged the cable into it without fitting the sensor, so as to test it cleared the intermittent STOP light / error message - which it did.
Reconnected to the original sensor, got the alarm again the next day.
Fitted new sensor yesterday.
For a 2.2 HDi, access is much better if you undo the TPS from it's bracket and move aside, (one screw). Also, remove the short flexible air pipe between the MAF and the 'elephant hose' that joins onto the turbo.
Obviously don't do it with a hot engine. Depressurise the cooling system by removing then refitting the expansion tank cap - to minimise coolant loss.
Have the new sensor ready with O ring in place, remove the retaining clip, pull out the old sensor and quickly shove in the new, refit clip.
Next, don't drop the bleed screw cap on the heater pipe like I did, occasioning another trip to the scrappy.
(If you do, a tyre valve dust cap nearly fits and will almost seal it while you marvel at your ham-fisted ineptitude).
Luck....