Added createResource fail checks