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-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-02-2021 06:32 AM
Thank you for your prompt reply! I did verify the access and all is set up with Full control. but now even manual execution gives the same error, though file is getting generated and saved. For testing purposed i'm saving it on a local machine where scheduler is installed.
02-02-2021 06:53 AM
I recommend using the Diagnostics Console to get more information about the error. Even though your report is being created, it would be nice to know why the error is occurring. You might ask your First Line of Support for assistance.
02-03-2021 07:37 AM
Could you please advise what tab in Diagnostics Console it would be recorded as I couldn't find anything related to it?
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.