Restoring a folder from Recycle Bin fails due to error “Failed to restore item. The path //Application Folder/BIVariants Folder/…/… does not exist

Restoring a folder from Recycle Bin fails due to error “Failed to restore item. The path //Application Folder/BIVariants Folder/…/… does not exist

  • Failed to restore item. The path //Application Folder/BIVariants Folder/AR0LDIsmeFJHs3BJQqwH_Kc/AbFbYRwU_FVFrgesF2w9ZQE does not exist
  • The error is observed when attempting to restore a folder from the Recycle Bin
  • Other objects and folders can be deleted and restored without issue

Environment

  • SAP BusinessObjects Business Intelligence Platform 4.2 SP02

Reproducing the Issue

  1. Create a Web Intelligence Report containing prompts
  2. Refresh the report and create a prompt variant (BI Variant)
  3. Save the report inside a folder which can be deleted
  4. Delete the folder containing the report
  5. (Only on non-4.2 SP02 versions) Using the SDK or other methods, delete a folder in the folder path leading to the BI Variant
  6. Attempt to restore the folder from the Recycle Bin
  7. Observe that the error occurs

Cause

  • In 4.2 SP02, this is caused by an incorrect query which causes the system to be unable to locate the path to restore to.
  • In other versions, the folder path leading to the location where the BI Variant is stored has been changed, and the Recycle Bin can not restore the object successfully.

Resolution

4.2 SP02 workarounds:

  • Update to SP03 or higher where this issue is resolved.
  • Follow KBA 1275068 and restore a backup of the environment to a point before the objects were deleted, and promote them to the problematic environment, or alternately, restore a backup of the system.

If this is due to a missing folder:

The following steps assume that the error seen is “Failed to restore item.The path //Application Folder/BIVariants Folder/AR0LDIsmeFJHs3BJQqwH_Kc/AbFbYRwU_FVFrgesF2w9ZQE does not exist”

Identify the missing folder:

  1. Navigate to query builder – http://<hostname>:<port>/AdminTools
  2. Execute the following query: “select si_name, si_id, si_children from ci_appobjects where si_name = ‘Application Folder'”
  3. Note down the SI_ID of the Application Folder
  4. Execute the query “select si_name, si_id, si_children from ci_appobjects where si_name = ‘BIVariants Folder’ and si_parentid = <SI_ID of Application Folder>”
  5. Note down the SI_ID of the BIVariants Folder
  6. Execute the query “select si_name, si_id, si_children from ci_appobjects where si_name = ‘AR0LDIsmeFJHs3BJQqwH_Kc’ and si_parentid = <SI_ID of BIVariants Folder>”
  7. Repeat steps 5-6 with any subsequent folders in the path seen in the error message.
  8. If the query does not return any results, write down the si_name and the si_parentid in the query

The following script and step are for BI Platform running on a Windows OS:

  1. Download the “addfolder.txt” file attached to the incident
  2. Rename the file to “addfolder.js” and place it on a machine with the BI Platform installed
  3. Modify the script and replace the fields inside the logon details with appropriate values – username (administrator is recommended), password, system (ex. localhost:6400)
  4. Replace the <changeme> tag with the si_name found above
  5. Replace the <SI_PARENTID> tag with the si_parentid found above
  6. Save the script
  7. Navigate to the folder containing the script in a command prompt window and execute the script with “cscript addfolder.js
  8. Verify that the folder now exists in query builder using the query that did not return results
  9. Attempt to restore the folder from the recycle bin and repeat the steps if necessary for any additional missing folders

Be the first to comment

Leave a Reply

Your email address will not be published.


*