7

I am having issues when pulling Workflows using SFDX with VS Code. The error that I get when pulling in the Workflow (sfdx force:source:pull) is:

ERROR running force:source:pull:  Entity of type 'Workflow' named 'Workflow' cannot be found

Does anyone have any idea on how to resolve this?

I heard that one fix is to downgrade the sfdx-cli to version 7.26.0 which I am not able to.

5
  • Why can't you downgrade ? Commented Oct 29, 2019 at 16:11
  • What version are you currently on that you're seeing this issue? I see mention of the issue on 7.27, but was wondering if you're on 7.30. Commented Oct 29, 2019 at 17:27
  • 2
    There is now a known issue for it: success.salesforce.com/issues_view?Id=a1p3A000001Sitr Commented Oct 30, 2019 at 5:45
  • @KrisGoncalves I am on version 7.28.7 I used to be on 7.27.0
    – Alias311
    Commented Oct 30, 2019 at 14:21
  • I aso had this issue on 7.28, updated to 7.30 and it was still present. To addres this I uninstalled sfdx completely, and am currently installing 7.26 via npm.
    – bpilling
    Commented Nov 10, 2019 at 20:55

2 Answers 2

8

To avoid the error on running sfdx force:source:pull run the following query through the tooling API and delete any records it returns (easily done in Dev Console):

SELECT Id, MemberType, MemberName FROM SourceMember WHERE MemberType = 'Workflow'

If you have any workflow metadata which you need to retrieve then use sfdx force:source:retrieve to pull these from the scratch org.

1
  • This gives "Invalid type: Schema.SourceMember" when I try to run it in dev console as SOQL. Commented Feb 17, 2021 at 6:44
4

It's a known bug that hasn't been fixed, you can follow progress over here: https://success.salesforce.com/issues_view?id=a1p3A000001SitrQAC

EDIT: Fixed as of December 2019

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .