function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
softectonicsoftectonic 

RE: Migration using Ant Tool

Hi,

 

I'm using the following package.xml snippet to retrieve email template from an organisation. The execution of "retrieveUnpackaged" command was successful and retrieved  retrieveUnpackaged\email\unfiled$public\Test_Notification.email and retrieveUnpackaged\email\unfiled$public\Test_Notification.email-meta.xml files. I then ran "deployUnpackaged" to deploy the downloaded email template and received this error:

 

Error: package.xml(unfiled$public):An object 'unfiled$public' of type EmailTemplate was named in package.xml, but was not found in zipped directory

 

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>unfiled$public</members>
<members>unfiled$public/Test_Notification</members>
<name>EmailTemplate</name>
</types>
<version>23.0</version>
</Package>

 

Any suggestions would be appreciated.

 

Thanks!

DaveMeagherDaveMeagher

Ran into same problem.

 

Fix was to rempve the following line 

 

<members>unfiled$public</members>

 

from the package.xml file, I guess it only likes files name and not directories in there...

 

 

Hope that helps!

 

 

Neil JamisonNeil Jamison
Dave's answer to remove the line <members>unfiled$public</members> worked for me too.
Jake Hebert 22Jake Hebert 22
Same for me as well. Just another observation, I am moving several folders which are all listed in the XML. For example:
<members>Ideas</members>
        <members>Ideas/Idea_Status_has_been_Updated</members>
        <members>Ideas/Submitted_Idea_is_available_now</members>
        <members>Ideas/Submitted_Idea_is_no_Plans_to_Pursue</members>
        <members>Ideas/Submitted_Idea_is_Not_on_Roadmap</members>
        <members>Ideas/Submitted_Idea_is_Q3_20016</members>
        <members>Ideas/Submitted_Idea_is_Q4_20016</members>

Works just fine, but only the unfiled$public folder fails. Removed unfiled public folder and kept everything else the same - deployed just fine.