catch error if metric not in table