<?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-2269 How to use the change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-2269 How to use the change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script</link><pubDate>Fri, 03 Nov 2023 13:52:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Current Revision posted to Appian Knowledge Base by pauline.delacruz on 11/3/2023 1:52:39 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and operating systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or when migrating&amp;nbsp;from one server to another.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/p&gt;
&lt;p&gt;If the issues&amp;nbsp;persist after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/p&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to&amp;nbsp;verify if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder.&lt;/li&gt;
&lt;li&gt;Processes may&amp;nbsp;be archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customers may notice that the folder is automatically created if it&amp;nbsp;did not exist before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to help users determine the values of &lt;code&gt;OLD_PATH_NOTES&lt;/code&gt; and &lt;code&gt;NEW_PATH_NOTES&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1698338408060v2.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following:&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, how-to, infrastructure, change paths&lt;/div&gt;
</description></item><item><title>KB-2269 How to use the change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/44</link><pubDate>Fri, 03 Nov 2023 13:52:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 44 posted to Appian Knowledge Base by pauline.delacruz on 11/3/2023 1:52:39 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and operating systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or when migrating&amp;nbsp;from one server to another.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/p&gt;
&lt;p&gt;If the issues&amp;nbsp;persist after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/p&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to&amp;nbsp;verify if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder.&lt;/li&gt;
&lt;li&gt;Processes may&amp;nbsp;be archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customers may notice that the folder is automatically created if it&amp;nbsp;did not exist before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to help users determine the values of &lt;code&gt;OLD_PATH_NOTES&lt;/code&gt; and &lt;code&gt;NEW_PATH_NOTES&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698338408060v2.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following:&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;November 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, how-to, infrastructure, change paths&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/43</link><pubDate>Thu, 26 Oct 2023 17:15:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 43 posted to Appian Knowledge Base by pauline.delacruz on 10/26/2023 5:15:46 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and operating systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or when migrating&amp;nbsp;from one server to another.&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/p&gt;
&lt;p&gt;If the issues&amp;nbsp;persist after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/p&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to&amp;nbsp;verify if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder.&lt;/li&gt;
&lt;li&gt;Processes may&amp;nbsp;be archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customers may notice that the folder is automatically created if it&amp;nbsp;did not exist before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to help users determine the values of &lt;code&gt;OLD_PATH_NOTES&lt;/code&gt; and &lt;code&gt;NEW_PATH_NOTES&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698338408060v2.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following:&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, how-to, infrastructure, change paths&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/42</link><pubDate>Thu, 26 Oct 2023 17:05:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 42 posted to Appian Knowledge Base by pauline.delacruz on 10/26/2023 5:05:17 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and operating systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or when migrating&amp;nbsp;from one server to another.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; There is a &lt;a href="https://docs.appian.com/suite/help/latest/Upgrade_Guide.html#6.-copy-your-data"&gt;requirement&lt;/a&gt; to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/p&gt;
&lt;p&gt;If the issues&amp;nbsp;persist after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/p&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to&amp;nbsp;verify if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to help users determine the values of &lt;code&gt;OLD_PATH_NOTES&lt;/code&gt; and &lt;code&gt;NEW_PATH_NOTES&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; Running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698338408060v2.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following:&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, how-to, infrastructure, change paths&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/41</link><pubDate>Thu, 26 Oct 2023 16:59:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 41 posted to Appian Knowledge Base by pauline.delacruz on 10/26/2023 4:59:54 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and operating systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or when migrating&amp;nbsp;from one server to another.&lt;/p&gt;
&lt;p&gt;Note that there is a &lt;a href="https://docs.appian.com/suite/help/latest/Upgrade_Guide.html#6.-copy-your-data"&gt;requirement&lt;/a&gt; to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/p&gt;
&lt;p&gt;If the issues&amp;nbsp;persist after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/p&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to&amp;nbsp;verify if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of &lt;code&gt;OLD_PATH_NOTES&lt;/code&gt; and &lt;code&gt;NEW_PATH_NOTES&lt;/code&gt;. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following:&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698338408060v2.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following:&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: installation, how-to, infrastructure, change paths&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/40</link><pubDate>Thu, 26 Oct 2023 16:39:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>pauline.delacruz</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 40 posted to Appian Knowledge Base by pauline.delacruz on 10/26/2023 4:39:22 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and&amp;nbsp;on different Operation Systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or from one server to another, and there is a &lt;a href="https://docs.appian.com/suite/help/latest/Upgrade_Guide.html#6.-copy-your-data"&gt;requirement&lt;/a&gt; to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If the issues&amp;nbsp;persist after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;:&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to&amp;nbsp;verify if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of &lt;code&gt;OLD_PATH_NOTES&lt;/code&gt; and &lt;code&gt;NEW_PATH_NOTES&lt;/code&gt;. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698269421849v1.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/39</link><pubDate>Wed, 25 Oct 2023 21:38:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 39 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:38:16 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and&amp;nbsp;on different Operation Systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If the issues&amp;nbsp;persist after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of &lt;code&gt;OLD_PATH_NOTES&lt;/code&gt; and &lt;code&gt;NEW_PATH_NOTES&lt;/code&gt;. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/0x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698269421849v1.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/38</link><pubDate>Wed, 25 Oct 2023 21:34:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 38 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:34:52 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and&amp;nbsp;on different Operation Systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If the issues&amp;nbsp;persist after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of &lt;code&gt;OLD_PATH_NOTES&lt;/code&gt; and &lt;code&gt;NEW_PATH_NOTES&lt;/code&gt;. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698269421849v1.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/37</link><pubDate>Wed, 25 Oct 2023 21:32:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 37 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:32:21 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and&amp;nbsp;on different Operation Systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If the issues&amp;nbsp;persist after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698269421849v1.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/36</link><pubDate>Wed, 25 Oct 2023 21:31:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 36 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:31:56 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and&amp;nbsp;on different Operation Systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. If the issues are not resolved after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698269421849v1.jpeg" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/35</link><pubDate>Wed, 25 Oct 2023 21:30:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 35 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:30:54 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in different scenarios and&amp;nbsp;on different Operation Systems. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. If the issues are not resolved after utilizing&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt;&amp;nbsp;folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-wikis-components-files/00-00-00-00-13/pastedimage1698269421849v1.jpeg" alt=" " /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in&amp;nbsp;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&amp;nbsp;to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Refer the sections above for usage of the script. Instead of using&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.bat&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and execute accordingly.&lt;/li&gt;
&lt;li&gt;Despite being on Windows, please use&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;\&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;, e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Add&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&amp;nbsp;comment out the lines that are not desired, e.g.&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;::set NEW_PATH_NOTES=c:/appian_new/_admin/process_notes&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/34</link><pubDate>Wed, 25 Oct 2023 21:19:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 34 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:19:42 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. If the issues are not resolved after utilizing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected &lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt; folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt; folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using &lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in &lt;strong&gt;change-paths.bat&lt;/strong&gt; and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/33</link><pubDate>Wed, 25 Oct 2023 21:18:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 33 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:18:53 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. If the issues are not resolved after utilizing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;h4&gt;Symptoms&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected &lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt; folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt; folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using &lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in &lt;strong&gt;change-paths.bat&lt;/strong&gt; and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/32</link><pubDate>Wed, 25 Oct 2023 21:18:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 32 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:18:24 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. If the issues are not resolved after utilizing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;h4&gt;&lt;strong&gt;Symptoms&amp;nbsp;&lt;/strong&gt;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected &lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt; folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt; folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using &lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in &lt;strong&gt;change-paths.bat&lt;/strong&gt; and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/31</link><pubDate>Wed, 25 Oct 2023 21:17:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 31 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:17:45 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. If the issues are not resolved after utilizing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;h4&gt;Symptoms&amp;nbsp;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected &lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt; folder&lt;/li&gt;
&lt;li&gt;Processes may get archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt; folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using &lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in &lt;strong&gt;change-paths.bat&lt;/strong&gt; and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/30</link><pubDate>Wed, 25 Oct 2023 21:17:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 30 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:17:03 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly. If the issues are not resolved after utilizing &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;, please create a support case for further investigation with Appian Support.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the error persists in &lt;strong&gt;tomcat-stdOut.log&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;h4&gt;Symptoms&amp;nbsp;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected &lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt; folder&lt;/li&gt;
&lt;li&gt;Processes are getting archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt; folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process and confirm if the .l file is displayed in&amp;nbsp;&lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using &lt;strong&gt;change-paths.sh&lt;/strong&gt;, makes the change in &lt;strong&gt;change-paths.bat&lt;/strong&gt; and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/29</link><pubDate>Wed, 25 Oct 2023 21:07:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 29 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 9:07:45 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing the change-paths script. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;Note that failures related to process notes location should not impact the execution of Process Models. The process note feature has&amp;nbsp;also been deprecated since Appian 16.3.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Symptoms&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Restart the&amp;nbsp;application server to see if the issue persists.&amp;nbsp;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;h4&gt;Symptoms&amp;nbsp;&lt;/h4&gt;
&lt;ol&gt;
&lt;li&gt;Archived processes are not showing up in the expected &lt;code&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process/&lt;/code&gt; folder&lt;/li&gt;
&lt;li&gt;Processes are getting archived into&amp;nbsp;&lt;code&gt;&lt;span&gt;&amp;lt;OLD&lt;/span&gt;&lt;span&gt;_APPIAN_HOME&lt;/span&gt;&lt;/code&gt;&lt;span&gt;&lt;code&gt;&amp;gt;/server/archived-process/&lt;/code&gt; folder. Customer may notice that the folder is automatically created if it was not existing&amp;nbsp;before.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;strong&gt;Actions&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and&amp;nbsp;update the OLD_PATH_ARCHIVED and NEW_PATH_ARCHIVED variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
#OLD_PATH_NOTES=/appian/_admin/process_notes
OLD_PATH_ARCHIVED=&amp;lt;OLD_APPIAN_HOME&amp;gt;/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
#NEW_PATH_NOTES=/appian_new/_admin/process_notes
NEW_PATH_ARCHIVED=&amp;lt;NEW_APPIAN_HOME&amp;gt;/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
#java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES
java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;Archive a process&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using change-paths.sh, makes the change in change-paths.bat and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/28</link><pubDate>Wed, 25 Oct 2023 20:07:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 28 posted to Appian Knowledge Base by Yiyi Tao on 10/25/2023 8:07:47 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing the change-paths script. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptom&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Action&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example:&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/appian/server/msg
#OLD_PATH_MWS=/appian/_admin/mini
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
#OLD_PATH_ARCHIVED=/appian/server/archived-process
#NEW_PATH_MSG=/appian_new/server/msg/
#NEW_PATH_MWS=/appian_new/_admin/mini
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes
#NEW_PATH_ARCHIVED=/appian_new/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;h4&gt;Scenario: Others&lt;/h4&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using change-paths.sh, makes the change in change-paths.bat and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/27</link><pubDate>Tue, 24 Oct 2023 21:28:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 27 posted to Appian Knowledge Base by Yiyi Tao on 10/24/2023 9:28:11 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing the change-paths script. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptom&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Action&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
#OLD_PATH_MSG=/usr/local/appian/ae/server/msg
#OLD_PATH_MWS=/usr/local/appian/ae/_admin/mini
OLD_PATH_NOTES=/usr/local/appian/ae/_admin/process_notes
#OLD_PATH_ARCHIVED=/usr/local/appian/ae/server/archived-process
#NEW_PATH_MSG=/usr/local/appian/ae/server/msg/
#NEW_PATH_MWS=/usr/local/appian/ae/_admin/mini
NEW_PATH_NOTES=/usr/local/appian/ae/_admin/process_notes
#NEW_PATH_ARCHIVED=/usr/local/appian/ae/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;h4&gt;Scenario: Others&lt;/h4&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using change-paths.sh, makes the change in change-paths.bat and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/26</link><pubDate>Tue, 24 Oct 2023 21:27:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 26 posted to Appian Knowledge Base by Yiyi Tao on 10/24/2023 9:27:46 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing the change-paths script. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptom&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Action&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example&lt;br /&gt;
&lt;pre&gt;    
#!/bin/bash
#OLD_PATH_MSG=/usr/local/appian/ae/server/msg
#OLD_PATH_MWS=/usr/local/appian/ae/_admin/mini
OLD_PATH_NOTES=/usr/local/appian/ae/_admin/process_notes
#OLD_PATH_ARCHIVED=/usr/local/appian/ae/server/archived-process
#NEW_PATH_MSG=/usr/local/appian/ae/server/msg/
#NEW_PATH_MWS=/usr/local/appian/ae/_admin/mini
NEW_PATH_NOTES=/usr/local/appian/ae/_admin/process_notes
#NEW_PATH_ARCHIVED=/usr/local/appian/ae/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;h4&gt;Scenario: Others&lt;/h4&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using change-paths.sh, makes the change in change-paths.bat and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>[DRAFT SP-9283] KB-XXXX How to use change-paths.(sh|bat) script</title><link>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script/revision/25</link><pubDate>Tue, 24 Oct 2023 21:26:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2150e4b-fd27-49f3-ad48-3762e4404a88</guid><dc:creator>Yiyi Tao</dc:creator><comments>https://community.appian.com/support/w/kb/3400/kb-2269-how-to-use-the-change-paths-sh-bat-script#comments</comments><description>Revision 25 posted to Appian Knowledge Base by Yiyi Tao on 10/24/2023 9:26:41 PM&lt;br /&gt;
&lt;h2&gt;Purpose&lt;/h2&gt;
&lt;p&gt;This article describes how to use the &lt;a href="https://docs.appian.com/suite/help/23.3/Upgrade_Guide.html#:~:text=change%2Dpaths.sh%20(.bat)"&gt;change-paths script&lt;/a&gt; in different scenarios and&amp;nbsp;on&amp;nbsp;Windows and Linux. This script should be utilized when errors related to process notes and/or archived processes are observed after&amp;nbsp;changing Appian&amp;#39;s&amp;nbsp;&lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;&lt;/code&gt; path&amp;nbsp;or from one server to another, and there is a requirement to&amp;nbsp;&lt;span&gt;update the mini website content/ process notes/ archived processes directory location.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please make sure that&amp;nbsp;Service Manager(s) and Engines are up and running in the environment&amp;nbsp;while executing the change-paths script. This script can be run from any node in the environment as long as the node can communicate with the Service Manager(s) properly.&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;h3&gt;Change the&lt;span&gt;&amp;nbsp;&lt;/span&gt;Path for Process Notes&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Symptom&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The following errors are observed in tomcat-stdOut.log&lt;/p&gt;
&lt;pre&gt;2022-05-02 16:08:20,117 [ForkJoinPool-1-worker-1] ERROR com.appiancorp.process.notes.services.NotesContentServiceImpl - User Administrator sent an invalid notes location of &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt; &lt;br /&gt;(Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;OLD_APPIAN_HOME&amp;gt;/&lt;/span&gt;_admin/process_notes/exec/00/0/0&amp;#39;&lt;/span&gt;); a notes location must be under &lt;span class="code-quote"&gt;&amp;#39;&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes&amp;#39;&lt;/span&gt; (Canonical: &lt;span class="code-quote"&gt;&amp;#39;&lt;span&gt;&amp;lt;NEW_APPIAN_HOME&amp;gt;&lt;/span&gt;/_admin/process_notes&amp;#39;&lt;/span&gt;).&lt;/pre&gt;
&lt;pre&gt;2021-12-24 12:55:04,884 [ForkJoinPool-1-worker-9] ERROR com.appiancorp.common.config.ConfigObject - An error occurred while trying to initialize the config LoadExceptionHandling [0ms] [resources 27ms]&lt;br /&gt;java.nio.file.InvalidPathException: Cannot store the note content, because the location is not valid.: &amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes/exec/00/0/0&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Action&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Go to &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/_scripts/tools/&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Edit the &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; and&amp;nbsp;update the OLD_PATH_NOTES and NEW_PATH_NOTES variables with absolute paths. Comment out the other lines. See below for an example&lt;/li&gt;
&lt;li style="list-style-type:none;"&gt;
&lt;ul&gt;
&lt;li style="list-style-type:none;"&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;    
#!/bin/bash
#OLD_PATH_MSG=/usr/local/appian/ae/server/msg
#OLD_PATH_MWS=/usr/local/appian/ae/_admin/mini
OLD_PATH_NOTES=/usr/local/appian/ae/_admin/process_notes
#OLD_PATH_ARCHIVED=/usr/local/appian/ae/server/archived-process
#NEW_PATH_MSG=/usr/local/appian/ae/server/msg/
#NEW_PATH_MWS=/usr/local/appian/ae/_admin/mini
NEW_PATH_NOTES=/usr/local/appian/ae/_admin/process_notes
#NEW_PATH_ARCHIVED=/usr/local/appian/ae/server/archived-process

pushd ..
#java -cp classpath.jar com.appiancorp.tools.ChangePaths MWS $OLD_PATH_MWS $NEW_PATH_MWS
#java -cp classpath.jar com.appiancorp.tools.ChangePaths FORUMS $OLD_PATH_MSG $NEW_PATH_MSG
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
#java -cp classpath.jar com.appiancorp.tools.ChangePaths ARCHIVED $OLD_PATH_ARCHIVED $NEW_PATH_ARCHIVED
popd
&lt;/pre&gt;
&lt;h3&gt;Change the Path for Archived Processes&lt;/h3&gt;
&lt;h4&gt;Scenario: Others&lt;/h4&gt;
&lt;h3&gt;Windows&lt;/h3&gt;
&lt;p&gt;Refer to the steps in Linux session. Instead of using change-paths.sh, makes the change in change-paths.bat and execute accordingly. Despite being on Windows, please use &lt;code&gt;/&lt;/code&gt;&amp;nbsp;in the path variables instead of &lt;code&gt;\&lt;/code&gt; , e.g.&amp;nbsp;&lt;code&gt;&lt;span&gt;set NEW_PATH_NOTES=E:/appian/_admin/process_notes&lt;/span&gt;&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Debug&lt;/h3&gt;
&lt;p&gt;For Appian 21.2 and later, two debug flags are available to hep the users determine the values of notesOldPath and notesNewPath. Note that running the script with debug flags will not actually execute the change paths action.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;To print single representative notes location from each server, edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF &lt;/code&gt;so that the script will be similar to the following&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_BRIEF
popd
&lt;/pre&gt;
The script output will be similar to the following&lt;br /&gt;&lt;img alt=" " border="0" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-13/debugsimple.JPG" /&gt;&lt;/li&gt;
&lt;li&gt;To print all notes locations from each server,&amp;nbsp;&lt;span&gt;edit the relevant line in &lt;strong&gt;change-paths.(sh|bat)&lt;/strong&gt; to&amp;nbsp;&lt;/span&gt;&lt;code&gt;java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES &amp;lt;old path&amp;gt; &amp;lt;new path&amp;gt; NOTES_DEBUG_BRIEF&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;span&gt;so that the script will be similar to the following&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;#!/bin/bash
OLD_PATH_NOTES=&amp;lt;OLD_APPIAN_HOME&amp;gt;/_admin/process_notes
NEW_PATH_NOTES=&amp;lt;NEW_APPIAN_HOME&amp;gt;/_admin/process_notes

pushd ..
java -cp classpath.jar com.appiancorp.tools.ChangePaths NOTES $OLD_PATH_NOTES $NEW_PATH_NOTES NOTES_DEBUG_FULL
popd
&lt;/pre&gt;
&lt;span&gt;In the script output, &amp;quot;All notes locations&amp;quot; will be shown instead of &amp;quot;Sample notes location&amp;quot; from the sample output above and the user will be able to see all the subdirectories under &lt;code&gt;&amp;lt;APPIAN_HOME&amp;gt;/_admin/process_notes/exec/&lt;/code&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;Known Limitations&lt;/h3&gt;
&lt;h2&gt;&lt;span&gt;Affected Versions&lt;/span&gt;&lt;/h2&gt;
&lt;p&gt;&lt;span&gt;This article applies to all versions of Appian. The debug flags apply to Appian 21.2 and later.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;October 2023&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>