[N:1]1([C:7]2[CH:8]=[C:9]([CH:13]=[CH:14][N:15]=2)[C:10]([OH:12])=[O:11])[CH2:6][CH2:5][CH2:4][CH2:3][CH2:2]1.S(Cl)(Cl)=O.[CH3:20]O>>[N:1]1([C:7]2[CH:8]=[C:9]([CH:13]=[CH:14][N:15]=2)[C:10]([O:12][CH3:20])=[O:11])[CH2:2][CH2:3][CH2:4][CH2:5][CH2:6]1A mixture of 2-Piperidin-1-yl-isonicotinic acid (30 g, 0.145 mol) in methanol (500 mL) was cooled to 0° C. and then thionylchloride (42 mL) was added. The reaction mixture was refluxed for 20 h. The solvent was removed under vacuum and the residue was taken up in EtOAc (500 mL). The organic layer was washed with 10% aqueous NaHCO3 solution, water, brine and dried. The solvent was removed under vacuum to methyl 2-piperidin-1-ylisonicotinate (18 g, 56%) as yellow liquid.