After an upgrade the application server either fails to start, or, it starts successfully but uploading/creating new files sometimes fails. The following message is seen in the application server log:
java.lang.IllegalArgumentException: Attempt to write over a file that already exists: <PATH_TO_FILE_IN_ACCDOCS>
This usually happens during upgrades with improper migrations or when the contents of the _admin folder have been moved around.
The cause for this is that the Collaboration engine has a mismatch with the _admin/accdocs folders. Specifically, the Collaboration engine has an internal counter that determines the next internal filename when creating a file. If the internal file already exists, then this will cause a conflict in the filename, causing Appian startup or document creation to fail.
This article applies to all versions of Appian.
Last Reviewed: August 2019
© 2022 Appian. All rights reserved.