02-01-2021 04:16 PM
I've setup a Unity Scheduled Dashboard. Created service to run it and when runs on schedule it generates the error:
Object reference not set to an instance of an object.
When the same task is executed manually, report is successfully created and saved in specified network location.
02-02-2021 12:55 AM
Whenever a Unity Scheduler task runs OK when executed manually, but fails when executed at its scheduled time by a Unity Scheduler Service, the first thing I like to examine is the Windows Account that's running the Unity Scheduler Service.
When a task is executed manually, it is run on the Application Server. The IIS Worker process that runs the Application Server usually runs as a Windows Domain Account with network access, including access to all the OnBase Disk Groups etc.
When a task is executed on its schedule by a Unity Scheduler Service instance, the Windows Account that runs the service should also be an account with network access, including access to the OnBase disk Groups. So it should have the same permissions as the account running the Application Server's IIS Worker Process. I.e. it should probably be a Windows Domain Account.
When a Unity Scheduler Service Instance is installed, if you don't specify a Windows Account to run the service instance, it will use the default account, LocalSystem. But LocalSystem does not have network access, and so it generally won't be sufficient to run tasks (unless all the disk groups are on the local machine).
The screenshot below shows two Unity Scheduler Service Instances. The first runs as LocalSystem, the second as a Domain Account
If, after checking, you find that your Service Instance is a Domain Account, then we need further troubleshooting. We'd need to get more details of the error. The Diagnostics Console might have more details.
02-04-2021 01:29 AM
Where are you seeing the Object reference not set to an instance of an object error currently? (I thought you were seeing it in the Diagnostics Console). Unfortunately that's a very generic error, but there may be additional details recorded in the Error tab of the Diagnostics Console (The Diagnostics Console must be logging from the Application Server or from the server running the Unity Scheduler Service). The Trace tab can give more detail, but you have to configure that in the appropriate web.config/app.config file. I believe there may also be logging specific to Reporting Dashboards, but I'm not sure. If necessary your First Line of Support will be able to help setting up Diagnostics.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.