Specify id or criteria query when entity not found.
Validate resource template.