Skip to main content
Asma Abbas (Datacom) 님이 NPSP Days에 질문했습니다

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개
  1. 2024년 4월 4일 오전 6: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