If you have come across an issue when you are trying to deploy your changes through SFDX CLI but facing no package.xml found the issue. We assumed that you have already installed SFDX CLI into your machine.
This error shows that your folder structure inside the zip file is not correct, once you fix the folder structure the error will be gone automatically.
If you are using SFDX CLI then there should be a parent folder and then upload all the metadata components in that folder and make a zip.
Eg: I have a folder named unpackaged and in that folder, I put my metadata components files and folders that is package.xml and wave folder. So my final directory looks like this:
unpackaged
– package.xml
– wave
Now, create a zip of the unpackaged folder and use it for the deployment.
If you are trying to deploy it using workbench then remove the unpackaged folder and create a zip of the package.xml and wave folder. When we retrieve metadata from the workbench, there is no parent folder only you will get your metadata components in that zip.
I hope, now it is clear when to use the parent folder and when we should not. If you still face the same issue, let us know by your comment.
Happy Coding !!
1 Pingback