web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / "Couldn't import compo...
Power Apps
Unanswered

"Couldn't import components" error when importing code component into Canvas app - Part 2

(0) ShareShare
ReportReport
Posted on by 13

Greetings,

 

I am having issues importing and updating a code component.

 

The component works as expected in the test harness and shows in the dropdown the space I would like, here is the snippet:

 

 

 <property name="myProperty"
 display-name-key="My Property"
 description-key="My Property Description"
 of-type="Enum"
 usage="input"
 required="false">
 <value name="ABC"
 display-name-key="ABC"
 description-key="ABC Description"
 default="true">0</value>
 <value name="ABC 123"
 display-name-key="ABC 123"
 description-key="ABC 123 Description">1</value>
 </property>

 

 

After too much searching around the net I finally found this issue on this board.  The issue I am having is with the ENUM value name, it seem that the value cannot have a space in it.

 

The question I have is how can I have a space in the dropdown?  I have tried %20, &nbsp; and &#xA0; - all fail trying to import the component.  A space, &nbsp; and &#xA0; all works as I would expect in the test harness.

 

If there is a different property that would give me a dropdown, I am open to that as well.

 

Cheers

I have the same question (0)
  • manojpatel20dec Profile Picture
    17 on at
    Space is not allowed in name attribute, the name="ABC 123" must be name="ABC123"
  • Noral Profile Picture
    13 on at

    Thank you but I already mentioned that in the OP.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard