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 / Packaging a code compo...
Power Apps
Answered

Packaging a code component with spaces in the folder path throws error

(0) ShareShare
ReportReport
Posted on by 186

Packaging a code component with spaces in the folder path throws error. FolderWithSpaceIssue.png

I have the same question (0)
  • alchin Profile Picture
    Microsoft Employee on at

    Hi,

     

    Can you try wrapping the --path argument value in double quotes like:

     

    pac solution add-reference --path "C:\Users\dnaglekar\Documents\test\Folder With Space"

     

    The Help output further explains that values with spaces require quotes.

     

    Thanks,

    Alex

  • Danish N. Profile Picture
    186 on at

    Already tired it but still fails. See the posted image in orginal question above (highlighted in yellow)

  • alchin Profile Picture
    Microsoft Employee on at

    Ah apologies, I didn't notice that you already tried with double quotes.  Let me try reproducing and filing a defect on this.

     

    Thanks,

    a/c

  • Verified answer
    alchin Profile Picture
    Microsoft Employee on at

    Hi there, this issue should be addressed in the next update.  Thank you.

  • Danish N. Profile Picture
    186 on at
    Awesome. Thanks
  • Danish N. Profile Picture
    186 on at
    May I know when is the next update scheduled to address this issue?
  • Mikkelsen2000 Profile Picture
    Microsoft Employee on at

    Can you pls. provide additional details on this? Thanks

  • sgpchenchang Profile Picture
    Microsoft Employee on at

    Hello @PowerMaverick ,

     

    The major version of the CLI has been bumped to 1.x four weeks ago. This issue should be resolved in the latest update. Please follow this post  for details upgrade steps. Thank you!

  • Danish N. Profile Picture
    186 on at

    Hi @sgpchenchang

    That's what I thought. My PCF CLI is updated to the latest version. As you can see in the screenshot attached the PCF CLI version is 1.0.6 but when adding reference of a component to solution throws an error. I have wrapped the path in quotes as well. This is only happening for add-reference command.

    FolderWithSpaceIssue-02.png
  • Verified answer
    sgpchenchang Profile Picture
    Microsoft Employee on at

    Hi @PowerMaverick ,

    I took a look at the error and I tried to reproduce issue using the exact same version. However I was not able to repro and we are also aware that this issue was fixed a while back. Can you potentially try to re-install the tool? If it still doesn't work I suggest to rename the folder to work around this issue until the root cause is identified by us. Thank you and sorry for the inconvenience.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard