Add throwing an error when beginning or end of 'fields' in ds file not found.