Showing results for 
Search instead for 
Did you mean: 

Trouble shooting pac solution clone

Hi Team,


I am trying to get my solution clone into source control. And I am trying to use 

following command 



pac solution clone --name SolutionName



And I get below error.

What am I missing here? what value is null and how to get this detail, but as is when I try to export from the portal it works fine.


Error: Value cannot be null.
Parameter name: path2

Usage: pac [auth] [help] [org] [pcf] [plugin] [solution] [telemetry]

  auth                        Manage how you authenticate to various services
  help                        Show help for the Microsoft PowerApps CLI
  org                         Work with your CDS Organization
  pcf                         Commands for working with PowerApps component framework projects
  plugin                      Commands for working with CDS plugin class library
  solution                    Commands for working with CDS solution projects
  telemetry                   Manage telemetry settings



Hi @navin22 


Did you try to follow these steps This could be a problem into Visual Studio solution.

Actually this solution was not created with the pac solution command. It was developed in the environment directly now I want to save to source control using pac solution clone? Is that doable.


@navin22 - I am not getting this behaviour in CLI v1.3.6 which is the latest version. Try running pac install latest and confirm that you are using the latest version.

Helpful resources

PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (983)