Hi
If the vehicle is giving a warning lamp there would normally be an associated fault code.
Unlike a petrol, the throttle body on a diesel has nothing to do with regulating engine power and has no direct link to the accelerator pedal, it's used as part of the EGR process.
If you are getting only 1500 RPM with the vehicle stationary then the injectors are only supplying a tiny amount of fuel compared to on-the-road running. I can only think that this is being deliberately controlled by the ECU because it "thinks" that the accelerator pedal is only just above the idling position. With the accelerator pedal at the idling end, the idling speed (typically 800 RPM) is then controlled by the ECU so that it is immune to load variations like taking a big current from the alternator or moving the steering.
The accelerator ("throttle") pedal unit has two potentiometers, i.e. dual redundancy, so that a fault in one cannot make the vehicle either stop or take off at max power. Each pot is supplied by +5 volts at one end (From the ECU) and is grounded at the other end. The sliders each feed a variable voltage to the ECU, with one being arranged to be always about twice the other. If the ECU sees an incorrect relationship between the two signals it should throw a fault code but the vehicle can still be driven. I guess it's possible that once you stop it then doesn't allow the vehicle to be driven again ?
You have checked out the wires to the pedal, are you able to do a resistance check of the pedal unit itself ? You should see smooth variation. Alternatively, probe the pot voltages to ground and see what they are doing as you move the pedal. See extracts from eLearn and the training manual.