+ Start a Discussion
David NazarovDavid Nazarov 

Question.workflow, Reply.workflow, Search.settings - fail deployment

Having three deployment errors when deploying the entire metadata for the org: There are no other errors, just these three.
 
workflows/Question.workflow -- Error: Cannot create workflow directly; must create the CustomObject first
workflows/Reply.workflow -- Error: Cannot create workflow directly; must create the CustomObject first
settings/Search.settings -- Error: Entity is null or entity element's name is null
 
These are showing up during deployment with both Ant Migration Tool, or via Force.com IDE. We didn’t make any edits to any of these three files or related features.

What could be causing the issues and how to fix them?
 
NagendraNagendra (Salesforce Developers) 
Hi David,

Is your custom object already implemented in the org?

You must deploy your custom object first, then deploy the workflow rule which should work.

Please let us know if any further information is required.

Regards,
Nagendra.
Adithya Neelam 19Adithya Neelam 19
 “Entity is null or entity element's name is null” for few searchSettingsByObject in Search.settings

Any solution for this error I am also facing this build failure 
Jayavardhana GangeJayavardhana Gange
I just retrieved all metadata from salesforce using SOAP API and trying deploy the same package without modifying it and I am getting these exactly 3 errors along with another "SocialPersona.workflow(0, 0:Cannot create workflow directly; must create the CustomObject first"