handle resource error in collection