You need to sign in to do that
Don't have an account?
Thomas Gagné
sfdx force:source:deploy complains custom label is not found in the workspace
I've converted my standard mdapi directory using the script below:
ERROR: The CustomLabel named API_Only_Profile_Id was not found in the workspace.
I confirmed the CustomLabel file exists
And package.xml contains what you'd expect.
sfdx force:project:create --projectname dx-maintenance cd dx-maintenance/ time sfdx force:mdapi:convert -r ../fsb-maintenance/src mkdir manifest cp ~/git/fsb-maintenance/src/package.xml manifest/ time sfdx force:source:deploy -x manifest/package.xml -u gagneBut that command complains at the end:
ERROR: The CustomLabel named API_Only_Profile_Id was not found in the workspace.
I confirmed the CustomLabel file exists
DrozBook:dx-maintenance tgagne$ ls -l force-app/main/default/labels/CustomLabels.labels-meta.xml -rw-r--r-- 1 tgagne staff 298376 Nov 4 00:19 force-app/main/default/labels/CustomLabels.labels-meta.xmlAnd that API_Only_Profile_Id is the /first/ label inside it:
<labels> <fullName>API_Only_Profile_Id</fullName> <categories>Id, Profile</categories> <language>en_US</language> <protected>false</protected> <shortDescription>API Only Profile Id</shortDescription> <value>00eG0000000eeBC</value> </labels>
And package.xml contains what you'd expect.
<types> <members>API_Only_Profile_Id</members> ... <name>CustomLabel</name> </types>So what else does sfdx force:soure:deploy need to work? What am I missing?
I do remember reading somewhere that sfdx' mdapi implementation is immature and incomplete. Rather than continue the masochism, I've opted to wait for it to implement all the features inside ant. Specifically, mdapi only supports deploying everything in the package file. To be useful for our deployments, it must be able to deploy zip files that contain fewer items than the package describes.
Then we might be able to consider switching to sfdx deploys.