this script work fine daily for reload the dashboard but sometime its shows error and im not ale to understand how to find this error . plz suggest what reason can happen to failed this script some time .
i attached and script error snap and here logs too-
or Check the credentials of the Application pool account used for the application. In our case we had changed the password for the service account and had not updated the same in the application pool which was causing the issue.