handling error if a transaction does not have metaData