ShareFile-PowerShell icon indicating copy to clipboard operation
ShareFile-PowerShell copied to clipboard

Some documents don't upload using Powershell

Open AndrewLSTI opened this issue 5 years ago • 1 comments

Our company has a server where we collect all of the documents users scan in their offices and upload them into ShareFile. We run a powershell script using the ShareFile Snapin x64 module to do the upload.

What we are finding is that some files do not get uploaded, and they are deleted.

From the logs we have set up, I can see that at least one file that was scanned to the server did exist, but never made it through the upload into ShareFile. I checked on the ShareFile folder we were uploading the files to and the audit logs there never showed that specific file showing up. I have an event log that our scan service account which runs the powershell script did delete the file using the powershell.exe process.

99% of the time, this process works with no problems.

We are using the ShareFile SnapIn x64 v1.0, and the powershell script we use is copied below:

Add-PSSnapIn ShareFile $sfClient = Get-SfClient –Name "D:\SecureScanning\NJCC\NJCC.sfps" New-PSDrive -Name sfdrive -PSProvider ShareFile -Root "/" -Client $sfClient Sync-SfItem -ShareFilePath "/SecureScanning" -LocalPath "D:\Customers\NJCC\Scans_NJCC" -Upload -Move -KeepFolders -Synchronize

How can I go about tracking down what is happening to the missing files?

AndrewLSTI avatar Apr 14 '20 14:04 AndrewLSTI

Same issue here, have been using the sharefile snapin since 2016, and we have files that randomly do not upload. Not sure how to troubleshoot what's failing or why.

jro1983 avatar Nov 30 '21 20:11 jro1983