Hi there,
I have numerous flows currently set up that will take an attachment from an email and upload that attachment to a SharePoint folder. This SharePoint folder houses ~20 different data reports that are tied via Power Query to reports and thus rely on the file being the same name. These email triggered flows work just fine with no issues.
Some of our data reports are too large to send via email and are uploaded to a folder in SharePoint A, however the name of the file typically includes the date. The oversize data reports are uploaded on a daily basis, and I'm trying to set up a flow that will grab the newly uploaded file, rename it so it fits in the Power Query scheme, and then upload/create/copy it into SharePoint B.
My issue is that when this flow triggers, it fails because of the following error code (some PII related text changed):
"A file with the name Shared Documents/DATA REPORT.xlsx already exists. It was last modified by i:0#.f|membership|REDACTED on 09 Jul 2025 12:15:30 -0700. clientRequestId: e3d55d5e-febe-44ac-8e3b-bb8957516e51 serviceRequestId: a2f3b3a1-8022-9000-69b1-5e3088ba1e1c"
In short, because a file already exists in SharePoint B with the same name the flow fails and the file does not automatically get replaced with the new one. Having the same name is imperative to the Power Query structure I've set up for various reports, and I'm confused because this issue is not present with my email triggered flows.
Screenshot of the current flow is attached, with some redaction for privacy. For the initialize variable step, which has the purpose of renaming the file, if I do not include the .xlsx suffix, then the file does successfully copy but the content of the file is lost and it won't open.
Appreciate any insight to solving this issue. Thank you!