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.js file 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 .zip folder and navigate to Controls\{your_pcf_control}.
  • 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.

🙂

Advertisements
Advertisements

Leave a comment

Visitors

2,092,120 hits

Top Posts