Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Tried to upgrade from Qlik Sense 3.2 SR5 (shared persistence, single node) to Qlik Sense February 2018. The upgrade said "successful", but I can't access Qlik Sense.
For the error below I tried the following, without success: https://help.qlik.com/en-US/sense/February2018/Subsystems/PlanningQlikSenseDeployments/Content/Deplo...
Here is the error in C:\ProgramData\Qlik\Sense\Log\Repository\Trace\System_Repository.txt:
| ERROR qliksense System.Repository.Repository.QRSMain Fatal exception update or delete on table "CompositeEvents" violates foreign key constraint "FK_CompositeEventTimeConstraints_CompositeEvents_ID" on table "CompositeEventTimeConstraints"↵↓Failed to execute query: 'DELETE FROM "CompositeEvents" WHERE "Deleted" = true'. Exception: update or delete on table "CompositeEvents" violates foreign key constraint "FK_CompositeEventTimeConstraints_CompositeEvents_ID" on table "CompositeEventTimeConstraints"↵↓Failed to remove soft deleted records↵↓An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext'. ---> Failed to remove soft deleted records (See inner exception for details.)↵↓An exception was thrown while invoking the constructor 'Void .ctor(Qlik.Sense.Common.ITypeResolver, System.Func`1[Repository.Core.Repository.Database.Common.IDatabaseContext], Autofac.ILifetimeScope, Repository.Core.Repository.Common.ITransactionUtility, Repository.Core.Repository.Common.IRepositoryEntityCache, Repository.Core.INodeStaticInfo, Qlik.Sense.Logging.IQSLogManager, Repository.Core.Repository.Common.ILifetimeScopeEntityCache, Repository.Core.Repository.Common.IEntityFrameworkExtendedWrapper)' on type 'EntityTransactionRepository'. ---> An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext'. ---> Failed to remove soft deleted records (See inner exception for details.) (See inner exception for details.)↵↓An exception was thrown while invoking the constructor 'Void .ctor(Qlik.Sense.Logging.IQSLogManager, Repository.Core.INodeStaticInfo, Qlik.Sense.Communication.Security.ICertSetup, Qlik.Sense.Common.Communication.REST.Server.IRESTEngineFactory, Repository.Core.ISystemInformation, Repository.Core.Certificates.ICertificatePasswordVerificationWebService, Qlik.Sense.Common.Logging.ILogMaster)' on type 'SetupService'. ---> An exception was thrown while invoking the constructor 'Void .ctor(Qlik.Sense.Common.ITypeResolver, System.Func`1[Repository.Core.Repository.Database.Common.IDatabaseContext], Autofac.ILifetimeScope, Repository.Core.Repository.Common.ITransactionUtility, Repository.Core.Repository.Common.IRepositoryEntityCache, Repository.Core.INodeStaticInfo, Qlik.Sense.Logging.IQSLogManager, Repository.Core.Repository.Common.ILifetimeScopeEntityCache, Repository.Core.Repository.Common.IEntityFrameworkExtendedWrapper)' on type 'EntityTransactionRepository'. ---> An exception was thrown while invoking the constructor 'Void .ctor()' on type 'DatabaseContext'. ---> Failed to remove soft deleted records (See inner exception for details.) (See inner exception for details.) (See inner exception for details.) | at Devart.Data.PostgreSql.PgSqlDataReader.f(Int32 A_0)↵↓ at Devart.Data.PostgreSql.PgSqlCommand.InternalExecute(CommandBehavior behavior, IDisposable stmt, Int32 startRecord, Int32 maxRecords)↵↓ at Devart.Common.DbCommandBase.ExecuteDbDataReader(CommandBehavior behavior, Boolean nonQuery)↵↓ at Devart.Common.DbCommandBase.ExecuteNonQuery()↵↓ at Repository.Core.Database.PgDatabase.DatabaseQuery.ExecuteNonQuery(PgSqlConnection connection, Int32 commandTimeout)↵↓NO-STACKTRACE↵↓ at Repository.Core.Migrations.Support.DataIntegritySupport.DbCleanSoftDeletedRecords()↵↓ at Repository.Core.Migrations.Support.DataIntegritySupport.CleanSoftDeletedRecords()↵↓ at Repository.Core.Migrations.Support.MigrationIoc.Using |
It got solved. The problem was that when I pasted the copied code from the troubleshooting page (see link below), the code got pasted in one line only, and it was a commented line of code, so of course that the code didn't have any effect when it was run.
Conclusion: the troubleshooting works, be careful when pasting the code they provide in the troubleshooting.
It got solved. The problem was that when I pasted the copied code from the troubleshooting page (see link below), the code got pasted in one line only, and it was a commented line of code, so of course that the code didn't have any effect when it was run.
Conclusion: the troubleshooting works, be careful when pasting the code they provide in the troubleshooting.