[SalesForce] Error when doing force:source:pull after creating an Email Template in a scratch org

I created a scratch org with the default scratch org definition file from sfdx force:project:create, and then I created an email template from the Email templates tab, and a Custom Object.

When I did force:source:pull to get the Custom Object metadata into my repo I got the following error.

Entity of type 'EmailTemplate' named 'unfiled$public/Test_Template_1553101913374' cannot be found.

Is this some sort of bug with the cli, scratch orgs and Email Templates or am I missing something?

Thanks in advance!

Best Answer

We do have an open bug with the conversion between the md and dx source format underneath the hood for EmailTemplate which I believe may be causing this problem. Can you confirm what OS you are running on (Win/Mac/Lin)?

If this failure is causing other changes to not be pulled properly, you should be able to add EmailTemplate to the .forceignore file to workaround it.

Also if the failure is with the conversion, then you should be able to retrieve it with force:mdapi:retrieve if you need to get it local (in md format).