C(N(CC)CC)C.Cl.[CH3:9][NH:10][O:11][CH3:12].[C:13](Cl)(=[O:20])[CH2:14][CH2:15][CH2:16][CH2:17][CH2:18][CH3:19].O>C(Cl)Cl>[CH3:9][N:10]([O:11][CH3:12])[C:13](=[O:20])[CH2:14][CH2:15][CH2:16][CH2:17][CH2:18][CH3:19]Triethylamine (19.6 g, 194 mmol) was added dropwise to a suspension of N,O-dimethylhydroxylamine hydrochloride (6.93 g, 71 mmol) in anhydrous CH2Cl2 at 0° C. Heptanoylchloride (9.60 g, 65 mmol) was then added dropwise and the reaction was stirred 1 hour. The crude product mixture was poured into water and the separated aqueous phase was extracted with CH2Cl2. The combined organic layers was washed with aq. HCl, sat. NaHCO3, brine, dried (Na2SO4), and concentrated in vacuo to give 10 g (89%) N-methyl-N-methoxyheptanamide as a yellow oil.