So I just had a very weird occurrence on our portal. We have the SynchronizeFiles event fire off every now and again because we have a load of files we link to in all sorts of modules (Links module for the link icon, for example, and all sorts of other modules in general).
The files just got all renumbered for us today out of the kindness of the synchronizer... yet the folder ids stayed the same. How about that?
I can't roll back the database because we have too much new data added each day; so I've written some queries and updated everything the best I can (some manual things gonna still have to be done).
Question is, how in the world did this happen and what can I do or could I have done to prevent it?
Sad thing, that folder has somewhere around 600 files in there.
The Schedule History for that event shows a failure as such:
DotNetNuke.Services.FileSystem.SynchronizeFileSystem, DOTNETNUKE
File System Synchronization failed. System.Threading.ThreadAbortException: Thread was being aborted. at DotNetNuke.Services.FileSystem.FolderController.GetMappedDirectory(String VirtualDirectory) at DotNetNuke.Entities.Portals.PortalInfo.get_HomeDirectoryMapPath() at DotNetNuke.Services.FileSystem.FileInfo.get_PhysicalPath() at DotNetNuke.Common.Utilities.FileSystemUtils.RemoveOrphanedFile(FileInfo objFile, Int32 PortalId) at DotNetNuke.Common.Utilities.FileSystemUtils.RemoveOrphanedFiles(FolderInfo folder, Int32 PortalId) at DotNetNuke.Common.Utilities.FileSystemUtils.SynchronizeFolder(Int32 PortalId, String physicalPath, String relativePath, Boolean isRecursive, Boolean syncFiles, Boolean forceFolderSync) at DotNetNuke.Common.Utilities.FileSystemUtils.SynchronizeFolder(Int32 PortalId, String physicalPath, String relativePath, Boolean isRecursive, Boolean syncFiles, Boolean forceFolderSync) at DotNetNuke.Common.Utilities.FileSystemUtils.SynchronizeFolder(Int32 PortalId, String physicalPath, String relativePath, Boolean isRecursive, Boolean syncFiles, Boolean forceFolderSync) at DotNetNuke.Services.FileSystem.SynchronizeFileSystem.Synchronize() at DotNetNuke.Services.FileSystem.SynchronizeFileSystem.DoWork()