KTA - Unable to log in with "Object reference not set to an instance of an object" error

Customer is seeing the following error when users are trying to sign into KTA:

This can be caused when there is orphan data in the TC_Data table.  When a capture activity is taken e.g. Validation, entries are added to the TC_Data table for the folder/documents/session, these rows should be removed when we cancel/complete the activity. The table should be empty when there is no work being performed on.

Workaround

Back up the TC_Data table and execute the following SQL query which will remove entries older than 1 day.

delete from dbo.tc_data 
where LastUpdated < dateadd(day, -1, getdate())  

Resolution

This issue has been addressed starting in KTA 7.8.0.14:
  • Bug 1714399: [7.8.0.14] COD 16528 - LogOn/LogOff/UnloadBatch throws "Object reference not set to an instance of an object" error when the batch hasn't been unloaded and the parent folder is deleted

Please check the TotalAgility Product Release Information page which shows that KTA 7.8.0.20 is currently the latest release for KTA 7.8.

Please note that this issue was also addressed starting in the following KTA versions:

  • Bug 1714402: [7.9.0.9] COD 16528 - LogOn/LogOff/UnloadBatch throws "Object reference not set to an instance of an object" error when the batch hasn't been unloaded and the parent folder is deleted
  • Bug 1714408: [7.10.0.1] COD 16528 - LogOn/LogOff/UnloadBatch throws "Object reference not set to an instance of an object" error when the batch hasn't been unloaded and the parent folder is deleted
  • Bug 1711959: [7.11.0] COD 16528 - LogOn/LogOff/UnloadBatch throws "Object reference not set to an instance of an object" error when the batch hasn't been unloaded and the parent folder is deleted

For further assistance with this, you can reach out to support@genustechnologies.com