DMF for oilfield chemicals