Skip to main content

Hi,

 

I am trying to deploy Affiliation object Page layout to another org using metadata api via below command but it doesn't work.

sfdx force:source:retrieve -m "Layout:customObject__npe5__Affiliation__c-Affiliation Layout"

 

I am receving this error:

$ sfdx force:source:retrieve -m "Layout:customObject__npe5__Affiliation__c-npe5__Affiliation Layout"

'C:\Program' is not recognized as an internal or external command, operable program or batch file.

 

Please let me know if you know how to fix it.

1 resposta
  1. 4 de abr. de 2024, 06:37

    Hi @Asma Abbas ,

     

    After a lot of try, Finaly i SOLVE the problem on windows (over MinTTY). The solution is change installation path:

    1. Uninstal current Installation of Salseforce
    2. Instal agane the sfdx-x64.exe but select another install directory, in my case i create another one called C:\SalsesforceTool
    3. Do all the other thinks normally

    https://salesforce.stackexchange.com/questions/380211/c-program-is-not-recognized-as-an-internal-or-external-command-in-git-bash-h

0/9000