Skip to main content

How to restore app with the same ID if app gets deleted unfortunately

cancel
Showing results for 
Search instead for 
Did you mean: 
Muni1
Contributor III
Contributor III

How to restore app with the same ID if app gets deleted unfortunately

Last Update:

Jun 13, 2022 6:56:58 AM

Updated By:

Muni1

Created date:

Jun 13, 2022 6:56:58 AM

This article talks about how to restore app with the same app ID if app gets deleted unfortunately by someone.

There are many ways to restore an app with same app ID:

  1. Restore the VM image of Qlik central server where the QVFs are stored.
  2. Find out the app ID of the deleted app.
  3. Copy the deleted app ID “file” and “.lock” files into physical location path (F:QlikSense\apps) and replace with the ID which gets deleted.
  4. Open PostgreSQL editor on central node.
  5. How to connect to PostgreSQL DB – follow the 2nd step here
  6. Create the app in PostgreSQL DB by running below query with the help of any existing app id

 

Insert into PUBLIC."Apps"(

              "ID", "Name", "AppId", "PublishTime", "Published", "Description", "LastReloadTime", "Thumbnail", "CreatedDate", "ModifiedDate", "ModifiedByUserName", "Owner_ID", "Stream_ID", "SavedInProductVersion", "MigrationHash", "DynamicColor", "SourceAppId", "TargetAppId"

              ) Select 'Deleted APP ID’,"Name", "AppId", "PublishTime", "Published", "Description", "LastReloadTime", "Thumbnail", "CreatedDate", "ModifiedDate", "ModifiedByUserName", "Owner_ID", "Stream_ID", "SavedInProductVersion", "MigrationHash", "DynamicColor", "SourceAppId", "TargetAppId"

              from public."Apps"

              where "ID"='any existing app ID’ // existing app

above query will create the deleted app on QMC

 

  1. Check the app and data on QMC/HUB
  2. Create reload task or try to run the app – there is an issue here to refresh the task
    1. It will throw an error without any logs if we refresh either app or task
    2. Alternative1: We must duplicate the app and refresh it then publish into actual one in QMC
    3. Alternative2: Open data load script editor and reload the script
    4. Automate the Alternative1 by using power shell script to refresh it on daily basis
Labels (2)
Contributors
Version history
Last update:
‎2022-06-13 06:56 AM
Updated by: