Canvas app code component error "Couldn't import components"

Scott DurowDyn365CE3 years ago7 Views

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!

 

 

Original Post https://develop1.net/public/post/2021/09/30/canvas-app-code-component-error-couldnt-import-components

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
March 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       
« Feb   Apr »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...