Hello! While performing a Git commit, a few files were deleted from SnapLogic and moved to the Recycle Bin. I restored the files, but after restoring them, most of the files are not opening at all and show the message “File cannot be displayed.” I tried deleting the files manually from the SnapLogic Manager, but I am unable to perform the delete action even though I have admin access. I also attempted to delete the files using a File Delete snap, but the delete operation fails there as well. Why was the file content lost after restoring the files, and why am I unable to delete them? This issue has occurred with multiple files.
Hi Sneha - This is a challenging situation that involves both Git operations and file system integrity. Why File Content Was Lost After Restoring When files are deleted during a Git commit operation and moved to the Recycle Bin, the restoration process may not fully recover the file content or metadata. This can happen because:
Git Operations vs. File System: Git operations work at a different level than simple file deletion/restoration
Metadata Corruption: The file metadata or internal references may have been corrupted during the Git operation
Incomplete Restoration: The Recycle Bin restoration may not have fully reconstructed the file's internal structure
Why You Cannot Delete the Files The inability to delete these corrupted files, even with admin access, suggests:
File System Lock: The files may be in a locked or corrupted state
Metadata Issues: The file system metadata is inconsistent
Reference Problems: Internal SnapLogic references to these files may be broken
Recommended Solutions 1. Use Git Operations to Restore Properly Instead of relying on Recycle Bin restoration, try using Git operations:
Discard Changes: Use the Git discard changes functionality to restore files from the repository
Hard Reset: Perform a hard reset to the last known good commit
Checkout Previous Version: Check out the files from a previous commit where they were working
2. Manual Cleanup Process For the corrupted files that cannot be deleted:
Contact SnapLogic Support: This level of file system corruption typically requires backend intervention
Database Cleanup: The references to these files may need to be removed from SnapLogic's internal database
3. Preventive Measures To avoid this issue in the future:
Always commit working files before performing Git operations
Use Git's built-in restore mechanisms rather than file system operations
Create backups before major Git operations
Test Git operations in a development environment first
4. Immediate Workaround If you need to continue working:
Create new versions of the affected files with different names
Import content from backups if available
Recreate the pipelines if the content is not recoverable
Next Steps
Document the affected files and their paths
Contact SnapLogic Support with details about the Git operation that caused the issue
Check if you have project backups that can be used for restoration
This type of issue typically requires support intervention because it involves both the file system and SnapLogic's internal metadata consistency. The corrupted state of the files suggests that the restoration process didn't properly reconstruct the file structure that SnapLogic expects.
