Post

#PowerPlatformTip 27: 'Overwrite existing files' (The Settings Hack)

Overwrite toggle missing in Power Automate's Create File action? Turn off Allow Chunking to unlock it and replace SharePoint files, no delete-and-recreate.

#PowerPlatformTip 27: 'Overwrite existing files' (The Settings Hack)

TL;DR: Turn off ‘Allow Chunking’ in the SharePoint Create File action’s settings to unlock the hidden Overwrite toggle.

💡 Challenge

You want to overwrite existing files in SharePoint using Power Automate’s Create File action, but the Overwrite toggle is missing or greyed out!

✅ Solution

Disable the Allow Chunking setting in your SharePoint connector, this instantly unlocks the Overwrite option.

🔧 How It’s Done

SharePoint Create File Settings - Allow Chunking disabled to enable Overwrite

  1. Open your Create File action in Power Automate.
  2. Click Settings (top right of the action).
  3. Scroll to the Content Transfer section.
  4. Set Allow Chunking to Off.
  5. Close Settings, the Overwrite toggle now appears in your action!

Power Automate new designer: the Settings tab of the SharePoint Create file action with Allow chunking switched Off under Networking, Content transfer In the new designer the switch lives in the action’s Settings tab under Networking, Content transfer: Allow chunking set to Off.

⚠️ Trade-offs

🔸 Size limit: With chunking disabled, very large files can fail. Keep chunking enabled for large file scenarios.

🔸 Version History: Overwriting replaces the file entirely. Enable SharePoint versioning if you need rollback capability.

🎉 Result

Your files get cleanly replaced without duplicates, no delete-then-create workarounds needed.

🌟 Key Advantages

🔸 One-Click Fix: A simple settings toggle, no extra actions in your flow.

🔸 Faster Flows: Skip the “check if exists → delete → create” dance.

🔸 Cleaner Libraries: No more filename(1).docx clutter.

🛠️ FAQ

1. Why is the Overwrite option hidden by default?

Microsoft enables chunking by default to support large file uploads. Since chunked uploads can’t overwrite, the toggle is hidden until you disable chunking.

2. What happens if my file is too large with chunking off?

The flow can fail with a size limit error. For large files, keep chunking enabled and use a delete-then-create pattern instead.

3. Does overwriting preserve sharing permissions?

Yes, overwriting maintains existing sharing links, permissions, and metadata. The file ID stays the same.

4. Can I use this for OneDrive too?

OneDrive for Business has the Overwrite toggle available by default, no settings hack needed there!

This tip is by Marcel Lehmann, Microsoft MVP (Business Applications) and founder of the Power Platform Academy – live Power Platform workshops, free or CHF 49. Join the workshop waitlist to get notified about new dates. For companies that want this implemented for them, see KMUpower – Power Platform consulting & automation for SMEs (DACH).

This post is licensed under CC BY 4.0 by the author.

Microsoft and the Power Platform product names (for example Power Apps, Power Automate, Copilot Studio) are trademarks of the Microsoft group of companies. This is an independent website. It is not operated, sponsored or endorsed by Microsoft.