My old E90 LCI 330d did this.
Glow plug control unit failed.
On the diagnosis tool, it will say that all 6 glow plugs have failed but as you would expect, this is not the case and it's the control unit.
New one was fitted and it was good to go again!
2006 BMW E60 520d SE 6MT
2009 BMW E90-LCI 330d SE 6MT
Current: 2012 F30 328i Luxury 8AT
2015 Audi A6 Avant Ultra, Black Edition (sorry!)