I had the same problem on a year old E class, turned out it was a sensor that was faulty and the car went into limp mode. Only way I "fixed" it was dsconnecting the battery and it reset everything.
Merc fixed it after a while. It may have been a maf sensor.