My brother got an E46 with a M47D20 that doesn't run, they have tried for a while swapping parts and taking it to the dealer. No-one knows what's wrong.
Is it possible to replace it with a M47TUD20? He can get a cheap donor with a good motor. I'm not familiar with the diesel engines on these cars.