When manually executing a cleanup of submitted tasks using the archiveTaskPersistence command, the process fails with the following error: ERROR MESSAGE: Invalid object name 'tasksession12_5'
This issue typically occurs when the Task Persistence and Archive databases are configured separately and the required cross-database script has not been applied to the correct instance.
The archive_crossdb_sqlserver.sql or archive_crossdb_oracle.sql script was either not executed or was executed on the Task Persistence (TP) database instead of the Archive database.
To resolve the invalid object error, the cross-database script must be applied to the Archive database:
<IM_Tools>/db/taskpersistence/archive_crossdb_sqlserver.sql or archive_crossdb_oracle.sql script against the Archive DB.
Follow the instructions from Cleanup Submitted Tasks Tab on how to run the archive_crossdb_sqlserver.sql script.