1

I am Getting SourcePathInvalid for file path c://projectpath//projectname/extension-output-#2 at deployment time. Please refer attach image for more details. enter image description here

0

This is happening because for the force:source:deploy command that path of the folder or the file you want to deploy is not correct.

Try opening up the file and doing a deploy or copy the file path or directory path by running pwd on your command terminal and manually type the command force:source:deploy --sourcepath "path of the directory or file"

Where path is the file path

  • Thanks Mohit for your response. I am doing full deployment from package.xml and getting invalid path error for file extension-output-#2 which is not present in workspace. – Pramod Singh Dec 12 '18 at 13:44
  • Hi Pramod .As I said ,do you have the path of the file .Are you on Windows or Mac ? – Mohith Shrivastava Dec 12 '18 at 13:50
  • Hi Mohit, I am on Windows, i am not able to locate the file or folder with this name "extension-output-#2" for which i am getting invalid path error. – Pramod Singh Dec 12 '18 at 16:44
  • You know the path of the package.xml file ? All you need is to execute that in the terminal – Mohith Shrivastava Dec 12 '18 at 16:45
  • 1
    I am new to VS code editor, i was trying to deploy by running the SFDX: Deploy This Source to Org command on package.xml. Through terminal now i am able to deploy the changes. thanks for your help Mohit. – Pramod Singh Dec 12 '18 at 17:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.