Stage: Validation, Deployment Build Task: Deploy a Source Directory (Source Format) to an Org
sfpowerscripts... Deploy Source to OrgConverting source to mdapiConverting to MDAPI Format force-app in project directoryERROR running force:source:convert: InvalidPackageDirectoryUnable to convert source for directory force-app##[error]Command failed: npx sfdx force:source:convert -r force-app -d QTcO4_mdapiERROR running force:source:convert: InvalidPackageDirectory
Possible Resolution:
Check that all your defined packages in sfdx-project.json
has at least 1 file in the package directory so that the sfdx cli
detects that the package exists and is valid. During the mdapi conversion process, it will reference the sfdx-project.json
file before starting to convert the specified package.
Check that all your defined packages in sfdx-project.json
have these following attributes defined
package:<name-of-the-package> // this is mandatory for each of the packagesversionNumber:<X.Y.Z.BuildNumber/NEXT> //this is mandatory for each of the packagesversionName:<any-version_name>
This error is thrown when sfpowerkit is unable to fetch information about the dependencies of a package. Check for the following
There is a valid alias for package dependencies for any of the unlocked /source packages
Unlocked packages are found to refer to a source package dependency