Orphaned protected records when deleting dev app or uninstalling deployed app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2015 10:29 AM
In patch2, hf1...
I'm finding orphaned records that were flagged as protected when either deleting an app from dev instance, or uninstalling the app from deployed instance.
In dev instance
- Create an app
- Create a script include and protect it
- Delete the app
- You will get a warning "Failed to completely delete application 'Quick test'. Review and manually delete any files that remain prior to deleting the application again."
- The app record is deleted so you can't easily find which records to manually delete
- Goto the script include you created, it still exists
- The script include does not have an application and is now protected in the dev instance so you can't delete it
If you deployed the app to another instance then try to uninstall the app, you will get the same result. Although there wasn't a warning message.
- 1,738 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2015 01:00 PM
I'll create a problem for this John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-04-2017 12:25 PM
You main question is: how to find the files, which need be manually deleted.
I had the same problem for short time. I want to post my answer on the old question to share my experience with other.
First of all I remind shortly the problem. Deleting/Uninstalling of an application could be unsuccessful. One get the error message like on the picture below
The main problem is that the error message don't contain any information which application files could be not deleted and which one have to be manually deleted.
The solution of the problem is following. One need to examine "Application File" (sys_metadata) table using the filter like on the picture below
One need just to know the id of deleted application.
Alternatively one can open the URL
/sys_metadata_list.do?sysparm_query=sys_class_name!=sys_metadata_delete^sys_scope=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
where xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx is replaced to application id. As the result one will get the list of all files, which belongs to the application and which are not deleted.
I hope it will help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-13-2019 08:49 AM
Anyone found a solution to delete these protected application files yet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-19-2019 11:42 AM
I believe this is finally resolved in Madrid.