Error handling and transformer initial