CN([CH:4]=[O:5])C.O=P(Cl)(Cl)[Cl:8].O=[C:12]1[CH2:17][CH2:16][N:15]([C:18]([O:20][CH2:21][CH3:22])=[O:19])[CH2:14][CH2:13]1>>[Cl:8][C:12]1[CH2:17][CH2:16][N:15]([C:18]([O:20][CH2:21][CH3:22])=[O:19])[CH2:14][C:13]=1[CH:4]=[O:5]A solution of DMF (2.5 eq) and POCl3 (1.5 eq.) at 0° C. was stirred for 15 min. To that ethyl 4-oxopiperidine-1-carboxylate (1.0 eq) obtained from step I was added at 40° C. and reaction was continued at room temperature for 2 h Reaction was quenched with water and extracted with ethyl acetate, organic layer was separated, dried over anhydrous Na2SO4 and concentrated under reduced pressure to afford crude product, which, on purification by column chromatography afforded the desired ethyl 4-chloro-5-formyl-3,6-dihydropyridine-1(2H)-carboxylate.