I am having a similar issue with my new to me 212s. Disclosure...I am new to diesels. Originally my machine started hard, sometimes killing the new battery to the point I would have to jump it. When hooked to my truck it would fire right up. Once running it performed well for days at a time (in warmer weather if that matters) but still started hard. Lately it will crank and crank, sputter & die, sputter, run a few seconds and die, then finally start and idle and then run well for a while (30-40 mins today) Once it dies it cranks and stalls but would eventually start.
Today I changed the fuel filter, cleaned the lift pump screen(and changed the gasket under the screw on top of it), removed and cleaned the sediment bowl (lots of rust) and removed and cleaned the filter under the fuel inlet on the IP (there was some waxy gunk on it which I found out is a precipitant of cold diesel). The solenoid looks new or at least not original. It seems to start right up and idle now, but...
I didn't bleed anything and it seemed to self prime after some cranking and started and idled well. Now it dies when I put it under any load (hydraulics or trans), if I put it in fwd or rev the idle will drop and it will stall unless I dump the trans or put it in N. Once today (before cleaning anything) I quickly switched the ignition off then on again as it was trying to quit and saved it, thinking that if it was some kind of faulty immobilizer wired to the solenoid it would reset. (I originally thought the fuel cutoff solenoid was a safety feature, forgetting that diesel engines will keep running without electricity!) Can fuel draw past the solenoid under load pull it closed if the solenoid coil on it's way out?
I have been reading the forums here and elsewhere and will be draining/cleaning the fuel tank & fuel lines. One question I have is regarding the inlet pipe filter on the IP. thepumpguysc warned of keeping the guts in that port and only taking out the filter, but my guts came out with the filter. Its a sleeve with a cap under it holding a spring and small bushing that slides up and down based on pressure I would assume. Fuel flows through this assembly through a small slit. I'm wondering if this assembly is indexed? It seemed to go back together fine, no leaks, etc. Just a bit worried about thepumpguysc's warning to keep guts in.
I will start with bleeding it ( if I can figure out what to crack on the IP based on the posts!) cleaning the tank and checking the solenoid & wiring as stated above. This machine was not well taken care of but i'm slowly getting it back into shape. I think it got sold because of a battery drain that I already hunted down (starter) and this issue that the prev owner said JCB fixed by replacing a collapsing fuel feed line from tank to sediment bowl (apparently they/he lied) . I'm also going to plug a cheap VDO hr meter into it and see what the mystery hrs are, which is scary. Any tips on bleeding or other general help(block heater, battery warmer?) is appreciated.