Canvas app code component error "Couldn't import components"
If you are developing code components (PCF) for canvas apps you'll be used to using the 'Get more components' panel. When adding the code-component to the canvas app, occasionally you will receive the somewhat unhelpful error:
Couldn't import components
There are no more details provided in the expanded down arrow area:
I'm putting this here for my future self (who always seems to forget about this issue) and anyone else who comes across this error.
The cause is usually because you have a property-set
that has the same name as an in-build property
or one of your own (e.g. Enabled/Selected)
The resolution is simply to prefix your property-set names with the name of the data-set:
<data-set name="Items" ... > <property-set name="ItemsSelected" .. /> <property-set name="ItemsEnabled" .. /> </data-set>
Hope this helps!
Published on:
Learn moreRelated posts
Integrate Your Custom Copilot into Your Canvas App in Power Apps
Microsoft Copilot Studio allows creators to build tailored Copilots powered by AI effortlessly. In a few simple steps, you can implement your ...
Dynamics 365 Embedded Canvas Apps in Model-Driven Power Apps
Introduction In an era where business evolves at lightning speed, leveraging the latest technology is crucial for success. Dynamics 365,…...
Use Copilot to quickly filter, sort, and search canvas app galleries with SQL Server
We are excited to announce that Power Apps application runtime users can now use Copilot to quickly filter, sort, and search the items in canv...
Canvas App | Simplified Display of SVG Images
In one of my previous articles : Display an SVG icon in CanvasĀ App ,I explained how to display an SVG icon using an Image control. While this ...
All About Modern Themes for Canvas Apps
{Solved} How to clear a DatePicker control in Canvas apps
Hello everyone and welcome to my blog. In today’s blog, I will show how you can clear a DatePicker control in PowerApps. You might be wo...
Coauthoring Feature in the Canvas App
Microsoft facilitates the development of Canvas apps, enabling users to efficiently access and manage the information necessary for their busi...