cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Unable to overwrite already existing file in SharePoint library using Create file in MS Flow

Hi Team,

 

I have created a flow to copy files from on premise server(when file is created or modified in folder) using data gateway connector and upload it to specific SharePoint library using create file connector.

 

Flow is working fine for newly created or modified file but for the already existing files in SharePoint document library flow is failed to upload file and giving below error:

 

"status"400,
"message": "A file with the name TestFlowCopy/test61.txt already exists. It was last modified by i:0#.f|membership|testaccount@dom on 11 Dec 2020 03:22:51 -0800.\r\nclientRequestId: xyz \r\nserviceRequestId: xyz"
 
Ideally it should overwrite the existing file content and create version for the same.
 
Please help me to find solution for this issue. Reply is appreciated a much.
 
Thanks,
Amol Tidke 
 
1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Hi All,

 

I found a workaround for my issue that I am checking whether the file already exist in the document library or not. If the file is already there then I am using update file function in my Flow else I use create file.

 

Thanks & Regards,

Amol Tidke 

View solution in original post

4 REPLIES 4
Super User III
Super User III

Hi @tidkeamol 

 

This behaviour is by design. The work around is check the file exists and delete the current file or rename the existing file.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials
New Member

Hi All,

 

I found a workaround for my issue that I am checking whether the file already exist in the document library or not. If the file is already there then I am using update file function in my Flow else I use create file.

 

Thanks & Regards,

Amol Tidke 

View solution in original post

Hi @tidkeamol 

 

If your problem has solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials
New Member

Simply disable 'Allow Chunking' in create file action settings.

It worked perfectly for me 🙂

Found the answer in another forum, don't remember where. Thks to his user if he read this !!

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (18,286)