The described compound can be obtained by treatment of carboxaldehyde (I) with potassium acetate (II) and acetic anhydride.
The title hydrazide is prepared by treatment of methyl 1-(2,4-dichlorobenzyl)indazole-3-carboxylate (I) with hydrazine hydrate in boiling acetic acid.