[OH:1][C:2]1[CH:3]=[C:4]2[C:9](=[CH:10][CH:11]=1)[CH2:8][NH:7][CH:6]([C:12]([OH:14])=[O:13])[CH2:5]2.S(Cl)(Cl)=O.[CH3:19]O>>[OH:1][C:2]1[CH:3]=[C:4]2[C:9](=[CH:10][CH:11]=1)[CH:8]=[N:7][C:6]([C:12]([O:14][CH3:19])=[O:13])=[CH:5]2To a solution of 6-hydroxy-1,2,3,4-tetrahydroisoquinoline-3-carboxylic acid (1.0 g, 5.2 mmol) in MeOH (50 mL) was added thionyl chloride (0.56 mL, 7.8 mmol) slowly. The reaction was heated at reflux for 18 h and then cooled to rt. The solvent was evaporated. The residue was redissolved in DCM and saturated NaHCO3 solution was added. The mixture was extracted with DCM (2×) and the combined organic solutions were dried over Na2SO4 and concentrated to give methyl 6-hydroxyisoquinoline-3-carboxylate as a white solid (0.72 g, 67%). LCMS: (FA) ES+ 208.2.