Running copy/sync commands cause SharePoint Files to get nixed -- itemNotFound: The upload session was not found

I appreciate all of the helpful advice. I created a scheduled task that performs a RCLONE sync job (once every day). I have been sending the results of the sync job to a log file.

@echo off
title RCLONE_sync

set "currentDate=%date:~-4,4%%date:~-7,2%%date:~-10,2%_"
set "currentTime=%time:~0,2%_%time:~3,2%"
set "resultsDoc=ResultsOn_%currentDate%%currentTime%.txt"

"C:\Program Files\RCLONE\rclone.exe" sync "E:\reporting\Wholesale Sales" SharePoint_Reporting_Wholesale_Sales: --ignore-checksum --ignore-size --log-file="C:\RCLONE_Logs\WHOLESALE_%resultsDoc%" --log-level=ERROR

EXIT 0


Based on the log files, the RCLONE sync job is still failing to copy the files to SharePoint on the 1st attempt.

Reason: Failed to copy: itemNotFound: The upload session was not found

However, the sync job has consistently been succeeding on attempt 2 (out of three).

I would love to see the sync job succeed on the 1st attempt. However, at this point in time I think this is the closest we will be able to get to a "working solution".

1 Like