No code needed, the fix is just changing one field in what you already have.
Looking at your screenshot, the problem is in the Copy file action. In the "File to Copy" field you have "File Content" mapped in. That is what is causing the size error File Content is the actual encoded data of the file, which is exactly what we are trying to avoid passing through the flow.
The Copy file action does not need the file content. It just needs to know where the file is. So:
1. Open the Copy file action
2. In the "File to Copy" field, remove "File Content"
3. Instead, use the file identifier or file path from your trigger — in the dynamic content picker from your trigger, look for something called "Identifier", "File path", or "Name" not File Content
That tells SharePoint where to find the file, and SharePoint handles the copy on its own without the file data ever passing through Power Automate. That is what avoids the size limit.
If you are not sure which field to pick, open the dynamic content panel when your cursor is in the File to Copy field and look for the option that shows the file path rather than the file data.
Best regards,
Valantis
✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.
❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).
🏷️ For follow-ups @Valantis.
📝 https://valantisond365.com/