Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

imported PCF solution error

(0) ShareShare
ReportReport
Posted on by 16

Hi Experts,

Whenever I imported PCF solution I got this error:

 

An error has occurred. Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support. : Microsoft.Crm.Tools.ImportExportPublish.ImportCustomControlException: CustomControl with name d365crnr.DataRangeControl failed to import with error: Webresource content size is too big. ---> Microsoft.Crm.CrmException: Webresource content size is too big.

 

Anyone face this issue?

  • NakulSuryan Profile Picture
    3 on at
    Re: imported PCF solution error

    This helped. Thank you. This is the solution.

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: imported PCF solution error

    In case FluentUI is used, usually the reason for a big bundle size (even minimized) is importing the whole library instead of taking only the needed components. In that case, maybe my blog can help to keep a small bundle size: https://dianabirkelbach.wordpress.com/2020/07/27/fluentui-granular-imports/

    Kind regards,

    Diana

  • Dinesh_tdoodz Profile Picture
    3 on at
    Re: imported PCF solution error

    This helped...! thanks

     

  • Verified answer
    Rick Wilson Profile Picture
    160 on at
    Re: imported PCF solution error

    I feel like i ran into this issue early on and fixed it by upping the value for "File size limit for attachments" which also affects the size of WebResources and annotations.

     

    --Rick

     

    AdvancedSettings.pngAdmin.pngSystemSettigns.pngEmailSettings.png

     

     

  • Verified answer
    Pankaj Jadhav Profile Picture
    18 on at
    Re: imported PCF solution error

    May be too late to reply. But it seems that it is possible to reduce the bundle.js file size by using following command when you build custom control

    msbuild /p:pcfbuildmode=production

     

    This will tell webpack to build js in production mode. Also it generates unmanaged solution which you can import on your dev environment.

     

    Thank you

  • JP-09110045-0 Profile Picture
    on at
    Re: imported PCF solution error

    At this time there is no way to increase the 5MB limit.  It is possible to build the control in Release mode that will minify the JavaScript file for you.

    As part of the MSBuild pass in the parameter '/p:configuration=release' or if you are using VS2017/2019, set the configuration to Release.

  • RajYRaman Profile Picture
    270 on at
    Re: imported PCF solution error
    I have seen this error happen if the webresource size is greater than 5MB. I usually minify my scripts and try to get it under the limit. I don't know whether there is a way to increase this limit.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard