Error "Cloud Sync Provider Failed to Validate" Error when attaching OneDrive files
Who is this article for?Users who encounter error when adding files from OneDrive.
No elevated permissions are required.
This article addresses a specific error message that users may encounter when attempting to attach files stored in OneDrive to Ideagen Internal Audit by dragging and dropping from File Explorer.
1. Issue
When dragging files from File Explorer into the Ideagen Internal Audit application window to save them as attachments, you might receive the following error message:
1. Exception of type: Exception - Message: An error occurred during the Add Attachment workflow System.Object: at Pentana.Tng.UI.Smart.Common.DataGrid.WFCommandBase.Workflow_ProgressChanged(Object sender, WFProgressChangedEventArgs e) at Pentana.Tng.Core.Workflow.OnProgressChanged(WFProgressChangedEventArgs e) at Pentana.Tng.Core.Workflow.Step_ProgressChanged(Object sender, WFProgressChangedEventArgs e) at Pentana.Tng.Agent.StepBase.OnProgressChanged(WFProgressChangedEventArgs e) at Pentana.Tng.Agent.StepBase.FeedbackResult() at Pentana.Tng.Agent.AsyncStepBase.Worker_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 1.1. Exception of type: IOException - Message: The cloud sync provider failed to validate the downloaded data. at Pentana.Tng.Workflows.FileBrokerHelper.Upload(String fileName) at Pentana.Tng.Workflows.AddFileStepBase.AddFile(EntityModel entity, String fileName) at Pentana.Tng.Workflows.AddFileStepBase.PickFiles(String fileMid, UniqueKey linkToUid, String linkPath, String[] files) at Pentana.Tng.Workflows.AddFileStep.Invoke() at Pentana.Tng.Agent.AsyncStepBase.Worker_DoWork(Object sender, DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
The key part of this error message is:
IOException - Message: The cloud sync provider failed to validate the downloaded data.
This indicates that the file is stored in OneDrive and is unavailable when the Internal Audit application attempts to create a copy for attachment.
Typically, this happens when dragging the icon for an offline file.
2. Solution
To resolve the issue:
- Quit the Internal Audit application.
- Open File Explorer.
- Right-click the file.
- Select Always keep on this device.
- Wait until the status icon changes to a green tick, replacing the cloud icon.
- Launch the Internal Audit application again.
- Try attaching the file.
You should now be able to attach the file without further errors.