[SalesForce] sfdx force:source:pull Entity of type ‘CustomApplication’ named ‘Case’ cannot be found

I have a scratch org that I'm trying to implement the support console with. When I try to pull the code using sfdx, I'm getting the following error:

Entity of type 'CustomApplication' named 'Case' cannot be found

I tried putting CustomApplication/** and CustomApplication/Case in the .forceignore file and tried to pull and still get the same error.

Has anyone had to deal with something like this?

Best Answer

This is a bug I feel somewhere in the sfdx cli and one needs to bring it attention to Salesforce on this.

The following is a workaround that did actually work for me .

  • I created an application named 'case' in my scratch org

  • Run `sfdx force:source:pull.

  • Add the folder path of the application in .gitignore and in .forceignore files.

Note that with this workaround I was able to get past this issue.However it is definitely a bug in salesforce CLI which I request you raise a support case.

Update

Any thing you want to exclude when you run force:source:pull you can do so by deleting the Member from Source Member object.

Use Developer console to execute below query

Select Id, MemberName From SourceMember Where MemberType = 'CustomApplication

and Delete it in the Dev console.