Extracting fields for error and output file path.