cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ajyendra24
Level: Powered On

imported PCF solution error

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?

2 REPLIES 2
rajyraman
Level: Powered On

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.
Power Apps Staff jopursle
Power Apps Staff

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.

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Users online (5,938)