[JBTM-1171] Log sql exception for one phase resources