The reaction of ())-diazoacetophenone and ethyl diazoacetate with the formylating reagent I afforded the corresponding acylated diazoaldehydes IV. By reaction of diazomethane with the reagent I, 2-dimethylamino-l, 3-dichloropropane (VI) resulted. Treatment of the diazoaldehydes IV with aniline or hydrogen sulfide gave 1, 2, 3-triazoles VIla, band 1, 2, 3- thiodiazole VIlla, resp.