I have a apex class "MyFile.page" that I cannot deploy. I had no issues deploying it to my sandbox using Illuminated Cloud. I have added the VF page to the package.xml file along with all the other metadata components. When I execute a deployment the error says "Required Field is Missing: Label"

I am aware that the issue is usually due to a -meta.xml file missing, but that is not the case with this file. Since executing the deployment using the package.xml. I attempted to use th CLI to deploy it manually but that failed as well.

What can be done to correct this error and ensure this file can be deployed.

I have yet to try a change set as that is what we are trying to move away from.

  • The visualforce page (not apex class) will be listed in the package.xml. The source directory needs to contain both the page and the -meta.xml. Have you confirmed both the page and the meta are in the directory that is being deployed? Apr 20 at 14:03
  • The VF page is listed in the package.xml file and the -meta.xml file is in the same directory as the VF page Apr 20 at 14:06
  • Does the meta-xml file actually have a label? Maybe it accidentally got removed?
    – sfdcfox
    Apr 20 at 14:09
  • The issue was the label was not in the -meta.xml file... I probably deleted the label working at 2AM. Thank you for the help! Apr 20 at 14:16

The meta.xml file is missing the label, which is a required field. It's important to verify that meets files are in order when committing and deploying. It's pretty easy to accidentally modify one of these files without thinking about it.

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.