AIM: I’m trying to delete queue items from On-Premise Orchestrator (2022.10.2) DB, but only for queues within 2 Orchestrator folders (in this example folders with OrganizationUnitId 22 or 23).
When I try to run a job in Microsoft SQL Server that will then use the cleanup scripts provided by UiPath it returns an error. “Error converting data type varchar to bigint.”
This is the Job step:
This is the error
Execution finished with error(s). Please execute the following SQL to see all errors: SELECT * FROM dbo.__CleanupLog WHERE IsError = 1 AND ExecutionId = ‘FD5B0470-3A9D-48BC-8E74-AC77DE27371E’ . First error is: Error converting data type varchar to bigint. [SQLSTATE 42000] (Error 71000) Execution started, execution id : FD5B0470-3A9D-48BC-8E74-AC77DE27371E [SQLSTATE 01000] (Error 0) At the end of the execution you can view all logs of the execution using the following SQL: SELECT * FROM dbo.__CleanupLog WHERE ExecutionId = ‘FD5B0470-3A9D-48BC-8E74-AC77DE27371E’ ORDER BY Id [SQLSTATE 01000] (Error 0) Caution: Changing any part of an object name could break scripts and stored procedures. [SQLSTATE 01000] (Error 15477) Error while processing table QueueItems. Encountered the following error: Error converting data type varchar to bigint. [SQLSTATE 01000] (Error 0). The step failed.
What do I need to change to fix this error?