My script is running well but at the end I get an error message Error during script execution.
Cannot set property \'status\' of undefined.
D