For the attachment import error: this is almost always caused by web files stored in Dataverse (images, PDFs, CSS, JS bundles) pushing the solution zip over the 32MB import limit. The fix is to move large static assets out of Dataverse web files and host them externally (Azure Blob Storage with a CDN, or even SharePoint), then reference them via URL in your pages instead of storing them as web files in the solution.
For the duplicate components: can you clarify what you mean by duplicated? There are two common scenarios:
1. The same web page or template is showing up twice in the solution component list when you added the site
2. After importing into the target environment, you see duplicate records (two versions of the same page)
The most common cause of scenario 1 is that the site components already exist in the Default Solution as unmanaged customizations, and when you add the site to a new solution it picks them up again. The fix is to make sure you are working from a single solution and not mixing unmanaged Default Solution components with your custom solution.
For scenario 2, it usually means the solution was imported more than once without proper managed/unmanaged layer handling. In that case, delete the duplicate records directly in the target environment via the Power Pages design studio or Dataverse, then re-import.
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/