Erratic climatic conditions have posed challenges to the economic viability of farming in Himachal Pradesh forcing a large section of farmers to leave the profession.