<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1241 "BUILD FAILED... Target doesn't exist!" error thrown when running the cleanup script</title><link>https://community.appian.com/support/w/kb/456/kb-1241-build-failed-target-doesn-t-exist-error-thrown-when-running-the-cleanup-script</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1241 "BUILD FAILED... Target doesn't exist!" error thrown when running the cleanup script</title><link>https://community.appian.com/support/w/kb/456/kb-1241-build-failed-target-doesn-t-exist-error-thrown-when-running-the-cleanup-script</link><pubDate>Mon, 06 Mar 2017 22:29:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:373b6033-c4c4-447d-a029-5bda884ccb62</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/456/kb-1241-build-failed-target-doesn-t-exist-error-thrown-when-running-the-cleanup-script#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 3/6/2017 10:29:02 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The cleanup script returns the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;./cleanup.sh data -keep 3
Buildfile: &amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/ant/aemovefiles.xml

BUILD FAILED
&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/ant/aemovefiles.xml:46: Target doesn&amp;#39;t exist!
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The cleanup script is unable to find the target directory to move the files to a back up.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;To resolve the issue:&lt;/p&gt;
&lt;p&gt;If the data can be moved to a backup location, pass the target parameter:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;./cleanup.sh data -keep 3 -target &amp;lt;APPIAN_HOME&amp;gt;
copykdbs:
[echo] KDB Directory &amp;lt;APPIAN_HOME&amp;gt;/server/notifications/gw1
[sortedfilelist] Set property sortedkdblist with value
[aeserversubdir] Set property serversubdir with value /notifications/gw1

BUILD SUCCESSFUL
Total time: 1 second
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If the data can be removed, pass the delete parameter:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;./cleanup.sh data -delete -keep 3
Buildfile: &amp;lt;APPIAN_HOME&amp;gt;\server\_scripts\ant\aedeletefiles.xml

default:
Trying to override old definition of task bool
Trying to override old definition of task bool

batch:
     [echo] Source AE installation location is &amp;lt;APPIAN_HOME&amp;gt;
     [echo]
     [echo] If archiving option is selected, archived file will be tarred and appended with timestamp to &amp;#39;aearchive&amp;#39;, for example, aearchive_20060606_102030.tar

 [echo]
 deletedata:

deletekdbs:
    [echo] KDB Directory &amp;lt;APPIAN_HOME&amp;gt;\server\metadata\gw1
[sortedfilelist] Set property sortedkdblist with value dtXXX.kdb
[aeserversubdir] Set property serversubdir with value \metadata\gw1
[delete] Deleting C:\appian7.9\server\metadata\gw1\dtXXX.kdb

BUILD SUCCESSFUL
Total time: 1 second
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;March 2017&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: administration, scripts&lt;/div&gt;
</description></item></channel></rss>