Missing field MiddleName
Detection
Examples
Error ContactService Variable does not exist: MiddleName (8:20)
Resolution
Middle names must be activated in the target org.
- Turn it on from git: commit force-app/main/default/settings/Name.settings-meta.xml with <enableMiddleName>true</enableMiddleName> (retrieve it with the Metadata Retriever of VS Code), and deploy it in a Pull Request merged before this one
- Or activate them in Setup -> User Interface -> "Enable Middle Names for Person Names"
- Scratch org setting:
"nameSettings": {
"enableMiddleName": true
}