function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thomas Gagné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:
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 gagne
But 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.xml
And 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?
Mike Flores 8Mike Flores 8
I'm experiencing this issue as well. Were you able to figure it out?
Thomas GagnéThomas Gagné
Honestly, I don't remember.
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.
Antonio LentoAntonio Lento
Check your .forceignore file, maybe you are ignoring it