If you are a PCF beginner, please refer to my previous article : Power Apps component framework (PCF) – Beginner guide.
Regarding the current blog post, while trying to import a solution with a PCF control, I encountered the error: Import Solution Failed: Web resource content size is too big.

Here is the reason and fix.
- In my scenario, the
bundle.jsfile of the code component was around 8 MB, exceeding the default allowed size of 5 MB.- To check the bundle.js, unzip the Dataverse solution
.zipfolder and navigate toControls\{your_pcf_control}.
- To check the bundle.js, unzip the Dataverse solution

- To fix the issue, increase the Maximum file size for attachments value from 5 MB to 10 MB (i.e., 10240 KB) . Note that, the default size is 5 MB (5,120 KB) and the maximum value is 128 MB (131072 KB).
- The setting can be found in the Power Platform admin center by going to Environments > [select an environment] > Settings > Email > Email settings.

- Save and retry the solution upload.
- You can also combine the above approach with the workarounds mentioned in the Microsoft Docs here.
🙂
![[Step by Step] Beginner : Create a PCF control and add it to a custom page](https://rajeevpentyala.com/wp-content/uploads/2024/12/image-49.png)


Leave a comment