-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hello @Barbarur
I have several folders in single document library I'm looking to duplicate from one site to another.
When running in report mode, no errors are logged/encountered, however, when running in action mode no files are copied and the report shows each file erroring with...
The system cannot find the file specified. (Exception from HRESULT: 0x80070002)
I've tried a few different folders and it appears if the source OR destination has a apostrophe in the folder name its omitted once NovaPoint starts the copying process, this is also seen in the logs as even though the source and destination are added with apostrophes, these are omitted later in the process
Have lifted some off the logs below
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "Version: v0.14.4"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "Solution parameters"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "========== ========== =========="
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "ReportMode: True"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "IsMove: True"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "AddAdmin: True"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "RemoveAdmin: False"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "SourceSiteURL: https://mysite.sharepoint.com/sites/Jobs2001-2200Docs"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "SourceListTitle: Documents"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "AllItems: False"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "FolderSiteRelativeUrl: /Shared Documents/TEST/2025 St Paul's Services"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "DestinationSiteURL: https://mysite.sharepoint.com/sites/JobsSupersededDocs"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "DestinationListTitle: Documents"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "DestinationLibraryRelativeUrl: /TEST/2025 St Paul's Services"
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "========== ========== =========="
[2025/04/25 12:07:41] , [Info] , [0] , [LoggerSolution] , "Solution has started, please wait to the end"
.............
[2025/04/25 12:07:42] , [Info] , [0] , [CopyDuplicateFileAuto] , "Getting source library."
[2025/04/25 12:07:42] , [Info] , [0] , [CopyDuplicateFileAuto] , "Getting destination library."
[2025/04/25 12:07:42] , [Info] , [0] , [SPOFolderCSOM] , "Start getting Folder '/sites/JobsSupersededDocs/Shared Documents/TEST/2025 St Paul's Services' from 'https://mysite.sharepoint.com/sites/JobsSupersededDocs'"
............
[2025/04/25 12:08:15] , [Debug] , [0] , [CopyDuplicateFileAuto] , "Caching information for item (2019) '/sites/Jobs2001-2200Docs/Shared Documents/AEC/2025 St Paul's Services/7. Design/7.1 - Drawings/7.1.3 - Bid Stage'"
[2025/04/25 12:08:15] , [Debug] , [0] , [SqliteHandler] , "INSERT INTO RESTCopyMoveFileFolder (Depth,SiteUrl,SourceServerRelativeUrl,DestinationServerRelativeUrl) VALUES ('8','https://mysite.sharepoint.com/sites/Jobs2001-2200Docs','/sites/Jobs2001-2200Docs/Shared Documents/AEC/2025 St Pauls Services/7. Design/7.1 - Drawings/7.1.3 - Bid Stage','/sites/JobsSupersededDocs/Shared Documents/AEC/2025 St Pauls Services/7. Design/7.1 - Drawings/7.1.3 - Bid Stage')"
............
Once the CopyMoveFileFolder routine starts, any apostrophes in the source/destination folder are omitted, I've tried to enter the source/destination folder into Novapoint as an URL encoded format but this doesn't appear to work either.
2025 St Paul's Services = 2025%20St%20Paul%27s%20Services
Any assistance would be great :)
Martin