[NH2:1][C:2]1[C:11]([CH3:12])=[CH:10][C:9]([Cl:13])=[CH:8][C:3]=1[C:4]([O:6][CH3:7])=[O:5].C(OC(=O)C)(=O)C.CC([O-])=O.[K+].[N:26](OCCC(C)C)=O>C(Cl)(Cl)Cl>[Cl:13][C:9]1[CH:10]=[C:11]2[C:2](=[C:3]([C:4]([O:6][CH3:7])=[O:5])[CH:8]=1)[NH:1][N:26]=[CH:12]2Methyl 2-amino-5-chloro-3-methylbenzoate (6.6 g, 33.1 mmol) was dissolved in CHCl3 (90 mL) then cooled in an icebath while acetic anhydride (7.2 mL, 76.1 mmol) was added dropwise. After the addition was complete, the reaction mixture was stirred at room temperature for ca. 1 h, then KOAc (650 mg, 6.6 mmol) was added, followed by isoamyl nitrite (9.7 mL, 72.8 mmol). The reaction mixture was heated under reflux until the reaction was complete by TLC (overnight). While cooling to room temperature, precipitation was observed. The precipitate was collected and dried to afford methyl 5-chloro-1H-indazole-7-carboxylate as a yellow solid (4.83 g, 69%): 1H NMR (300 MHz, CDCl3) δ 11.25 (s, 1H), 8.10 (s, 1H), 8.05 (s, 3H), 7.97 (s, 1H), 4.09 (s, 1H); MS (ESI+) m/z 211 (M+H).