<?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-1233 "Could not be unarchived: The following user or users do not exist or have been renamed after the process was archived: &lt;user&gt;" error thrown when trying to unarchive a process using the archiveprocess script</title><link>https://community.appian.com/support/w/kb/448/kb-1233-could-not-be-unarchived-the-following-user-or-users-do-not-exist-or-have-been-renamed-after-the-process-was-archived-user-error-thrown-when-trying-to-unarchive-a-process-using-the-archiveprocess-script</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1233 "Could not be unarchived: The following user or users do not exist or have been renamed after the process was archived: &lt;user&gt;" error thrown when trying to unarchive a process using the archiveprocess script</title><link>https://community.appian.com/support/w/kb/448/kb-1233-could-not-be-unarchived-the-following-user-or-users-do-not-exist-or-have-been-renamed-after-the-process-was-archived-user-error-thrown-when-trying-to-unarchive-a-process-using-the-archiveprocess-script</link><pubDate>Mon, 06 Mar 2017 22:04:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba326240-8e0c-4bed-a66d-662343aceeed</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/448/kb-1233-could-not-be-unarchived-the-following-user-or-users-do-not-exist-or-have-been-renamed-after-the-process-was-archived-user-error-thrown-when-trying-to-unarchive-a-process-using-the-archiveprocess-script#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 3/6/2017 10:04:30 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The &lt;strong&gt;archiveprocess.(bat|sh)&lt;/strong&gt; script, located under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/_scripts/tools&lt;/code&gt;, is unable to unarchive a process because it has a reference to a user that no longer exists in the system with that username.&lt;/p&gt;
&lt;p&gt;After unarchiving processes, the follow error is present in the application server log:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ERROR: Engine 1, process XXXXXXXXX (/../../../archived-process/01/5/process_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX_XXXXXXXXXXXXXXX_XXXXXXXXX.l): Could not be unarchived: The following user or users do not exist or have been renamed after the process was archived: [USER NAME]
Log file created: 
&amp;lt;APPIAN_HOME&amp;gt;/logs/archiveprocess_YYYYMMDDHHMMSS.log
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;A username was renamed after the process was archived, which causes the archived process to reference the old username.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Using the &lt;strong&gt;archiveprocess.(bat|sh)&lt;/strong&gt; script located in the &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/server/scripts/tools/&lt;/code&gt; directory:&lt;/p&gt;
&lt;p&gt;1.Create a file that lists the old username and current username to map to in the format:&lt;br /&gt;[OLD_USERNAME] [CURRENT_USERNAME]&lt;br /&gt;&lt;strong&gt;Note&lt;/strong&gt;: The file can have any name such as usermap&lt;br /&gt;1. Run the following command:&lt;br /&gt;archiveprocess.sh unarchive -pid [PROCESS_ID]-file [ARCHIVED_PROCESS_FILE_NAME].l -usermap [NAME_OF_FILE_WITH_OLD_TO_NEW_USERNAME_MAP]&lt;/p&gt;
&lt;p&gt;More information about managing process archives can be found &lt;a href="https://docs.appian.com/suite/help/latest/Managing_Process_Archives.html"&gt;here&lt;/a&gt;.&lt;/p&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, processes, scripts&lt;/div&gt;
</description></item></channel></rss>