Avoid entity creation if error on file processing