logo
search
SharePoint Document Issues

How to Fix Power Automate Copy File Errors for SharePoint Home.aspx

Adam DavisAdam Davis Sep 27, 2026 869 views

Question details

The user needs to resolve an error in Power Automate where copying a SharePoint Home.aspx page between sites fails due to invalid data in a number field.

How to Fix Power Automate Copy File Errors for SharePoint Home.aspx
Product
Power Automate and SharePoint
Device & OS
not provided
Scenario
Automating the transfer of a SharePoint Home.aspx page to another site using a Power Automate flow.
Observed behavior
The flow fails with an error indicating a number field contains invalid data, preventing the Home.aspx page from being copied. This often happens due to Microsoft API changes or the nameConflictBehavior parameter.
Before you start

Verify your SharePoint site permissions and confirm whether the Power Automate flow previously worked, as sudden widespread failures usually indicate a backend Microsoft API or schema update.

Solution 1Recommended

Route the Page Copy Through the Style Library or a Child Flow

Bypassing direct site-to-site copies by using an intermediate library or a child flow can help avoid the schema validation error.

If the error is caused by a recent change in how SharePoint handles site-to-site page copies via the Power Automate API, routing the file through a different library structure can successfully complete the transfer.

1
Open your flow

Navigate to Power Automate, locate your failing flow, and click 'Edit'.

2
Modify the initial Copy action

Replace the existing 'Copy file' action with a new one that copies the Home.aspx page to an intermediate location on the destination site, such as the 'Style Library'.

3
Add a secondary Move or Copy action

Add a subsequent 'Copy file' or 'Move file' action to transfer the page from the intermediate 'Style Library' to the final 'Site Pages' destination.

4
Alternative: Use a Child Flow

If the intermediate library doesn't work, create a separate Child Flow containing just the 'Copy file' action and trigger it from your main flow.

Route the Page Copy Through the Style Library or a Child Flow
API Changes: If this issue started suddenly across all your flows, it may be due to a Microsoft backend update involving the nameConflictBehavior parameter where 'Replace' is unexpectedly passed as a number (1).
Free Microsoft Office alternative

Discover WPS Office for Your Document Needs

While WPS Office does not directly manage SharePoint Power Automate flows, it offers a powerful, free, and lightweight alternative to Microsoft Office for creating, editing, and managing your daily documents. Enjoy high compatibility with Microsoft formats and a familiar interface.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installer for your operating system.
  2. 2. Install the Software: Run the downloaded installer and follow the on-screen instructions to complete the lightweight setup.
  3. 3. Open and Edit Office Files: Launch WPS Office to easily open, edit, and save your Microsoft Office documents without format issues.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats.Lightweight installation that runs smoothly on most devices.Familiar user interface for seamless and quick migration.Free built-in PDF editing and conversion tools.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the Power Automate copy file action report invalid data in a number field?

This error often occurs due to Microsoft backend changes related to the nameConflictBehavior parameter, where 'Replace' is passed as the number 1 instead of a recognized string, causing SharePoint's schema validation to fail.

Can I move a SharePoint Home.aspx page directly without Power Automate?

Yes, you can manually copy or move the Home.aspx page using the 'Copy to' or 'Move to' feature directly within the SharePoint Site Pages library UI if automation is currently failing.

Will reverting to a deprecated Copy file action fix the SharePoint page issue?

No, testing indicates that the issue does not involve the deprecated action. The error persists across different versions of the standard Copy file action due to underlying SharePoint API updates.

What is the Style Library workaround for copying SharePoint pages?

The workaround involves configuring your flow to first copy the page into the Style Library (an intermediate location) and then moving it to the final Site Pages destination to bypass the direct site-to-site schema conflict.