3

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!

3

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).

| improve this answer | |
  • Running macOS 10.14.3 and sfdx-cli/6.56.0-e3fd846a1f (darwin-x64) node-v8.15.1. Thanks for the reply I will add it to the .forceignore file in the meantime! – adriancg Mar 22 '19 at 20:34
  • Having the same issue on Mac OS, using the above mdapi command didn't pull the file down either. Really need to include some email templates with our managed package. Any way to manually pull the metadata down? Note that these are email templates created in Lightning Experience. Thanks! – Charles Naccio May 27 '19 at 21:40
  • Having the same issue on Win10, Cannot pull down newly created Email Templates at all. – sevargdcg Jun 5 '19 at 2:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.