Fix exception for missing column
raw and csv option added.