+ Start a Discussion
GauravTrivediGauravTrivedi 

sfdx force:source:deploy is not deploying WorkflowRule, and related entities

When I try to deploy WorkflowRule, WorkflowFieldUpdate, WorkflowTask, WorkflowAlert, and WorkflowOutboundMessage I am getting below error.
The WorkflowRule named <RULE> was not found in the workspace.

I am using below command
sfdx force:source:deploy -x ./manifest/package.xml -u orgAlias
Project structure:
Project --> force-app --> main --> default --> workflows
<?xml version="1.0" encoding="UTF-8"?>
<Workflow xmlns="http://soap.sforce.com/2006/04/metadata">
    <fieldUpdates>
        <fullName>Rule_Name</fullName>
        <description>DESCRIPTION</description>
        <field>field__c</field>
        <literalValue>1</literalValue>
        <name>Name</name>
        <notifyAssignee>false</notifyAssignee>
        <operation>Literal</operation>
        <protected>false</protected>
        <reevaluateOnChange>true</reevaluateOnChange>
    </fieldUpdates>
    <rules>
        <fullName>Rule Name</fullName>
        <actions>
            <name>Rule_Name</name>
            <type>FieldUpdate</type>
        </actions>
        <active>false</active>
        <criteriaItems>
            <field>Object__c.RecordTypeId</field>
            <operation>equals</operation>
            <value>myValue</value>
        </criteriaItems>
        <description>DESCRIPTION</description>
        <triggerType>onCreateOrTriggeringUpdate</triggerType>
    </rules>
</Workflow>

Project-->manifest-->package.xml
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>Object__c.Rule Name</members>
        <name>WorkflowRule</name>
    </types>
     <types>
        <members>Object__c.Rule_Name</members>
        <name>WorkflowFieldUpdate</name>
    </types>
    <version>46.0</version>
</Package>