web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Edit solution.xml with...
Copilot Studio
Suggested Answer

Edit solution.xml with too large solution export

(2) ShareShare
ReportReport
Posted on by 85
I have a solution in Power Automate with my agents. It contains dead references in solution.xml that I would like to remove. However, I cannot edit solution.xml directly in the browser. So I exported the solution, edited the xml locally, zipped everything up again, and now wanted to upload it again. In the browser itself, I get a network error, and in the CLI, I get
 
pac solution import --path “D:\Agents_1_0_0_5_managed_edited_reupload.zip”
Error (413) Request Entity Too Large
 
The file is 160MB in size due to the embedded knowledge sources. 
 
What can I do to update solution.xml in the end?
Remove the large files from the zip file? Will it then take the files that are already in the solution on the server?
Or are there other ways to solve the problem?
I have the same question (0)
  • Suggested answer
    Haque Profile Picture
    2,008 on at
    Hi @Konrad,
     
    First thing first, the error "Error 413 Request Entity Too Large" when importing a large Power Automate solution (160MB) after editing solution.xml is due to size limits on the import request.
     
     
     
    What you can do to update solution.xml despite this:
     
    • Split the Solution:

      • Break your large solution into smaller managed/unmanaged solutions if possible, separating the knowledge sources or large components.

      • Import smaller parts individually, then reassemble in the target environment.

    • Use Power Platform CLI with Chunked Upload:

      • Currently, the CLI does not support chunked uploads for large files, so this may not help directly, but keep an eye on updates.

    • Remove Unnecessary Components:

      • Before export, remove or exclude large embedded knowledge sources or unused components to reduce size

     

    Recommended approach for your case:

    • Use Power Platform Solution Packager to unpack your solution.
    • Edit the solution.xml or other component files locally.
    • Repack the solution using the packager tool.
    • Try importing the repacked solution again.
    • If still too large, try splitting the solution or removing large embedded knowledge sources.
     

     

    Please let me know if this works.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 579

#2
Vish WR Profile Picture

Vish WR 191

#3
Haque Profile Picture

Haque 181

Last 30 days Overall leaderboard