Error Occured
System.Exception: Migration failed: There is already an object named ‘Table::TaskActivities’ in the database.
Microsoft.Data.SqlClient.SqlException (0x80131904): There is already an object named ‘TaskActivities’ in the database.
at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at Microsoft.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean isAsync, Int32 timeout, Boolean asyncWrite)
at Microsoft.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource1 completion, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String methodName) at Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery() at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.<>c.<NonQuery>b__4_0(DbCommand t, DbCommandInterceptionContext1 c)
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher1.Dispatch[TTarget,TInterceptionContext,TResult](TTarget target, Func3 operation, TInterceptionContext interceptionContext, Action3 executing, Action3 executed)
at System.Data.Entity.Infrastructure.Interception.DbCommandDispatcher.NonQuery(DbCommand command, DbCommandInterceptionContext interceptionContext)
at System.Data.Entity.Internal.InterceptableDbCommand.ExecuteNonQuery()
at System.Data.Entity.Migrations.DbMigrator.ExecuteSql(MigrationStatement migrationStatement, DbConnection connection, DbTransaction transaction, DbInterceptionContext interceptionContext)
at System.Data.Entity.Migrations.DbMigrator.ExecuteStatementsInternal(IEnumerable1 migrationStatements, DbConnection connection, DbTransaction transaction, DbInterceptionContext interceptionContext) at System.Data.Entity.Migrations.DbMigrator.ExecuteStatementsWithinTransaction(IEnumerable1 migrationStatements, DbTransaction transaction, DbInterceptionContext interceptionContext)
at System.Data.Entity.Migrations.DbMigrator.ExecuteStatementsWithinNewTransaction(IEnumerable1 migrationStatements, DbConnection connection, DbInterceptionContext interceptionContext) at System.Data.Entity.Migrations.DbMigrator.ExecuteStatementsInternal(IEnumerable1 migrationStatements, DbConnection connection)
at System.Data.Entity.Migrations.DbMigrator.<>c__DisplayClass61_0.b__0()
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.<>c__DisplayClass2_0.b__0() in /_/src/ErikEJ.EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs:line 32
at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute[TResult](Func1 operation) in /_/src/ErikEJ.EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs:line 43 at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.Execute(Action operation) in /_/src/ErikEJ.EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs:line 29 at System.Data.Entity.Migrations.DbMigrator.ExecuteStatements(IEnumerable1 migrationStatements, DbTransaction existingTransaction)
at System.Data.Entity.Migrations.DbMigrator.ExecuteStatements(IEnumerable1 migrationStatements) at System.Data.Entity.Migrations.Infrastructure.MigratorBase.ExecuteStatements(IEnumerable1 migrationStatements)
at System.Data.Entity.Migrations.DbMigrator.ExecuteOperations(String migrationId, VersionedModel targetModel, IEnumerable1 operations, IEnumerable1 systemOperations, Boolean downgrading, Boolean auto)
at System.Data.Entity.Migrations.DbMigrator.ApplyMigration(DbMigration migration, DbMigration lastMigration)
at System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable1 pendingMigrations, String targetMigrationId, String lastMigrationId) at System.Data.Entity.Migrations.Infrastructure.MigratorBase.Upgrade(IEnumerable1 pendingMigrations, String targetMigrationId, String lastMigrationId)
at System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)
at System.Data.Entity.Migrations.DbMigrator.<>c__DisplayClass42_0.b__0()
at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
at System.Data.Entity.Migrations.Infrastructure.MigratorBase.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
at System.Data.Entity.Migrations.Infrastructure.MigratorBase.Update()
at UiPath.Orchestrator.DataAccess.Common.UiDbInitializerBase2.InitializeDatabase(TContext context) in C:\or-bld-ag-41aa3c83-we\_work\1\s\src\DataAccess\Common\UiDbInitializer.cs:line 51 at UiPath.Orchestrator.DataAccess.EntityFramework.EntityFramework.UiPathDatabaseInitializer.InitializeDatabase(UiPathDbContext context) in C:\or-bld-ag-41aa3c83-we\_work\1\s\src\DataAccess\EntityFramework\EntityFramework\UiPathDatabaseInitializer.cs:line 30 at System.Data.Entity.Internal.InternalContext.<>c__DisplayClass66_01.b__0()
at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
at System.Data.Entity.Internal.LazyInternalContext.<>c.b__58_0(InternalContext c)
at System.Data.Entity.Internal.RetryAction1.PerformAction(TInput input) at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action1 action)
at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase()
at System.Data.Entity.Internal.InternalContext.Initialize()
at System.Data.Entity.Internal.InternalContext.ForceOSpaceLoadingForKnownEntityTypes()
at System.Data.Entity.DbContext.System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()
at Abp.EntityFramework.AbpDbContext.RegisterToChanges() in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Abp\Abp.EntityFramework\EntityFramework\AbpDbContext.cs:line 147
at Abp.EntityFramework.AbpDbContext.InitializeDbContext() in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Abp\Abp.EntityFramework\EntityFramework\AbpDbContext.cs:line 142
at Abp.EntityFramework.AbpDbContext…ctor(String nameOrConnectionString) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Abp\Abp.EntityFramework\EntityFramework\AbpDbContext.cs:line 91
at Abp.Zero.EntityFramework.AbpZeroCommonDbContext3..ctor(String nameOrConnectionString) in C:\or-bld-ag-41aa3c83-we\_work\1\s\src\Abp\Abp.ZeroCore.EntityFramework\Zero\EntityFramework\AbpZeroCommonDbContext.cs:line 159 at Abp.Zero.EntityFramework.AbpZeroDbContext4…ctor(String nameOrConnectionString) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Abp\Abp.ZeroCore.EntityFramework\Zero\EntityFramework\AbpZeroDbContext.cs:line 65
at UiPath.Orchestrator.DataAccess.EntityFramework.EntityFramework.UiPathDbContext…ctor(String nameOrConnectionString) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\DataAccess\EntityFramework\EntityFramework\UiPathDbContext.cs:line 184
at UiPath.Orchestrator.DataAccess.EntityFramework.EntityFramework.UiPathDbContext.Create(String connectionString, IConfiguration configuration) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\DataAccess\EntityFramework\EntityFramework\UiPathDbContext.cs:line 497
at UiPath.Orchestrator.DataAccess.EntityFramework.Migrations.Factory.SqlDatabaseMigrator.CreateDbContext() in C:\or-bld-ag-41aa3c83-we_work\1\s\src\DataAccess\EntityFramework\Migrations\Factory\SqlDatabaseMigrator.cs:line 48
at UiPath.Orchestrator.DataAccess.EntityFramework.Migrations.Factory.SqlDatabaseMigrator.InstallOrUpdateDatabase() in C:\or-bld-ag-41aa3c83-we_work\1\s\src\DataAccess\EntityFramework\Migrations\Factory\SqlDatabaseMigrator.cs:line 34
at UiPath.Orchestrator.Setup.DatabaseMigration.Helpers.DatabaseMigratorBase3.InstallOrUpdateDatabase() in C:\or-bld-ag-41aa3c83-we\_work\1\s\src\Setup\DatabaseMigration\Helpers\DatabaseMigratorBase.cs:line 23 at UiPath.Orchestrator.Cli.Database.DatabaseOperationsManager.UpdateToLatestAsync(String hostAdminPass, Nullable1 changeHostAdminPass, String tenantAdminPass, Nullable`1 changeTenantAdminPass) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Setup\Cli\Database\DatabaseOperationsManager.cs:line 59
at UiPath.Orchestrator.Cli.Database.DatabaseCommandHandler.HandleDatabaseUpgradeAsync(DatabaseUpgradeOptions options) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Setup\Cli\Database\DatabaseCommandHandler.cs:line 50
at UiPath.Orchestrator.Cli.Database.DatabaseCommandHandler.HandleAsync(Parser parser, String args) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Setup\Cli\Database\DatabaseCommandHandler.cs:line 16
ClientConnectionId:68b0f0bc-64e8-479a-961f-091c5cd9713f
Error Number:2714,State:6,Class:16
at UiPath.Orchestrator.Setup.Configuration.Database.DbMigratorWrapper.RunTool()
at UiPath.Orchestrator.Setup.Configuration.Database.DbMigratorWrapper.InstallOrUpdateDatabase()
at UiPath.OrchestratorCAs.DatabaseManager.ApplyOrchestratorDbMigrations()
at UiPath.OrchestratorCAs.DatabaseManager.ApplyDbMigrations()
at UiPath.OrchestratorCAs.CustomActions.Deferred.UpdateConfigurationAndDatabasesAction.Execute()
at UiPath.OrchestratorCAs.CustomActions.Base.BaseCustomAction.InternalExecute()
Error Occured while reverting to the previous version of database.
System.Exception: Migration failed: Invalid object name ‘dbo.SystemJobsSchedules’.
System.Data.SqlClient.SqlException (0x80131904): Invalid object name ‘dbo.SystemJobsSchedules’.
at System.Data.SqlClient.SqlCommand.<>c.b__126_0(Task1 result) at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
— End of stack trace from previous location —
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
— End of stack trace from previous location —
at UiPath.Scheduler.Core.DataAccess.SqlQueryExecutor.<>c__DisplayClass8_01.<<LoadListAsync>b__0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.Scheduler.Core.DataAccess.SqlQueryExecutor.ExecuteDbActionAsync(Func3 doExecute, CancellationToken ct)
at UiPath.Scheduler.Core.DataAccess.SqlQueryExecutor.LoadListAsync[T](SqlQuery query, CancellationToken ct)
at UiPath.Orchestrator.Scheduling.BackgroundTasks.SystemSchedulesManager.ExecuteInTransactionAsync[TResult](IUnitOfWorkProvider unitOfWorkProvider, Func1 func, TransactionOption option) in C:\or-bld-ag-41aa3c83-we\_work\1\s\src\Core\Scheduling\BackgroundTasks\SystemSchedulesManager.cs:line 290 at UiPath.Orchestrator.Scheduling.BackgroundTasks.SystemSchedulesManager.GetSystemSchedulesAsync(CancellationToken ct) in C:\or-bld-ag-41aa3c83-we\_work\1\s\src\Core\Scheduling\BackgroundTasks\SystemSchedulesManager.cs:line 283 at UiPath.Orchestrator.Scheduling.BackgroundTasks.SystemSchedulesManager.DeleteNonExistingSystemSchedulesAsync(IEnumerable1 systemJobDescriptors, CancellationToken ct) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Core\Scheduling\BackgroundTasks\SystemSchedulesManager.cs:line 201
at UiPath.Orchestrator.Scheduling.BackgroundTasks.SystemSchedulesManager.ClearSystemSchedulesAsync(CancellationToken ct) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Core\Scheduling\BackgroundTasks\SystemSchedulesManager.cs:line 70
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
at Nito.AsyncEx.AsyncContext.<>c__DisplayClass15_0.b__0(Task t)
at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
at System.Threading.Tasks.Task.<>c.<.cctor>b__272_0(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
— End of stack trace from previous location —
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
— End of stack trace from previous location —
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
at Nito.AsyncEx.AsyncContext.Run(Func1 action) at Abp.Threading.AsyncHelper.RunSync(Func1 action) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Abp\Abp\Threading\AsyncHelper.cs:line 33
at UiPath.Orchestrator.Setup.DatabaseMigration.DatabaseMigrator.ClearInternalJobs() in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Setup\DatabaseMigration\DatabaseMigrator.cs:line 58
at UiPath.Orchestrator.Cli.Database.DatabaseOperationsManager.ClearInternalJobsAsync() in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Setup\Cli\Database\DatabaseOperationsManager.cs:line 112
at UiPath.Orchestrator.Cli.Database.DatabaseCommandHandler.HandleClearInternalJobsAsync(ClearInternalJobsOptions options) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Setup\Cli\Database\DatabaseCommandHandler.cs:line 123
at UiPath.Orchestrator.Cli.Database.DatabaseCommandHandler.HandleAsync(Parser parser, String args) in C:\or-bld-ag-41aa3c83-we_work\1\s\src\Setup\Cli\Database\DatabaseCommandHandler.cs:line 16
ClientConnectionId:5a59dc8c-7d44-46c5-a33a-685ad4862f2c
Error Number:208,State:1,Class:16
at UiPath.Orchestrator.Setup.Configuration.Database.DbMigratorWrapper.RunTool()
at UiPath.Orchestrator.Setup.Configuration.Database.DefaultDbMigratorWrapper.ClearInternalJobs()
at UiPath.OrchestratorCAs.DatabaseManager.RollbackOrchestratorDbMigrations(String migrationToRollbackTo)
at UiPath.OrchestratorCAs.CustomActions.Rollback.RollbackDbMigrationsAction.Execute()
at UiPath.OrchestratorCAs.CustomActions.Base.BaseCustomAction.InternalExecute()