Hiện tượng
Trong khi lưu tệp Excel hiện có trong thư mục được đồng bộ với OneDrive hoặc sao chép và ghi đè lên tệp trong thư mục được đồng bộ với OneDrive, các thao tác có thể không thành công với Ngoại lệ bắt nguồn từ OneDrive. Tương tự như thế này:
System.IO.IOException: Access to the cloud file is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost) at Microsoft.Flow.RPA.Desktop.Modules.Folder.Actions.FolderActions.CopyFolder2(String sourceFolder, String destinationFolder, Boolean overwrite) at Microsoft.Flow.RPA.Desktop.Modules.Folder.Actions.FolderActions.CopyFolder(Variant source, Variant destination, Variant& copiedFolder, Boolean overwrite) --- End of inner exception stack trace --- at Microsoft.Flow.RPA.Desktop.Modules.Folder.Actions.CopyFolder.Execute(ActionContext context) at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)
Nguyên nhân
Có vẻ như có sự cố với chức năng Tệp Theo Yêu cầu của OneDrive tạo ra các tệp giả trong thư mục cục bộ mà không thực sự tải xuống chúng.
Cách giải quyết
Tắt tính năng Tệp Theo Yêu cầu của OneDrive thông qua Cài đặt trong phần mở rộng vỏ OneDrive.