The process cannot access the file because it is being used by another process

Certified Associate Developer

Hello,

I am running into a "Requesting File" error on all robotic tasks. The following is the trace log for one of them (with altered client information) but the same error is occurring for all robotic tasks:

[INFO] 2024-11-14 22:57:38 - - Robotic task 'updateClient' (62ced40be4b01228753f64b2), execution #3674, technology JAVA, start method API, log level TRACE, testing mode is OFF, external workflow is OFF
[INFO] 2024-11-14 22:57:38 - - Robotic task will run with following parameters:
[INFO] 2024-11-14 22:57:38 - - Parameter 'client', value '{"#t":5266,"#v":{"Id":4,"firstName":"C","middleName":"","lastName":"H","ssn":"4","medicaidId":"K","dateOfBirth":"1900-01-01","specialInstructions":"This client was created in APP. Please go there for full client details.","primaryLanguage":"English","ethnicity":"Unknown","gender":"female","addressLine1":"","addressLine2":"","city":"","state":"","zipcode":null,"county":"","caseManager":"","phone":"7208299615"}}' (default value 'null')
[INFO] 2024-11-14 22:57:38 - - Robotic task without environment variables
[INFO] 2024-11-14 22:57:38 - - Waiting for a robot
[INFO] 2024-11-14 22:57:39 - - Robot selected was AZ-winRPA003 (63f3e5050a0d3c6f26f06f2e#1), permission tags: roleoperation,caseLogic
[INFO] 2024-11-14 22:57:39 - - Agent version 9.12.1, revision 24100712
[INFO] 2024-11-14 22:57:39 - - Memory: free 92.129Mb, reserved 125.723Mb (14%), limit 866.188Mb, maximum 866.188Mb
[INFO] 2024-11-14 22:57:39 - - Disk: free 0b (0%), total 126.447Gb
[INFO] 2024-11-14 22:57:39 - - Robotic task without code
[INFO] 2024-11-14 22:57:39 - - Processing libraries
[INFO] 2024-11-14 22:57:39 - - Not needed assembling class because robotic task has no code
[INFO] 2024-11-14 22:57:39 - - Processing 1 variables
[INFO] 2024-11-14 22:57:40 - - Processing support files
[INFO] 2024-11-14 22:57:40 - - Processing support files
[INFO] 2024-11-14 22:57:40 - - Processing support files
[INFO] 2024-11-14 22:57:40 - - Processing support files
[INFO] 2024-11-14 22:57:40 - - Processing support file '62cdc018e4b01228753f648a/edgeWebDriver/msedgedriver.exe'
[ERROR] 2024-11-14 22:57:43 - - An exception occurred in phase step: Requesting files (REQ_FILES)
com.novayre.jidoka.client.lifecycle.PhaseException: An exception occurred in phase step: Requesting files (REQ_FILES)
    at com.novayre.jidoka.client.lifecycle.PhaseStep.run(PhaseStep.java:58)
    at com.novayre.jidoka.client.lifecycle.PhaseSequenceRunner.execute(PhaseSequenceRunner.java:40)
    at com.novayre.jidoka.client.lifecycle.PhaseSequenceRunner.execute(PhaseSequenceRunner.java:24)
    at com.novayre.jidoka.client.RobotClientExecutor.execPhaseSequenceRunner(RobotClientExecutor.java:440)
    at com.novayre.jidoka.client.RobotClientExecutor.tryExecute(RobotClientExecutor.java:404)
    at com.novayre.jidoka.client.RobotClientExecutor.execute(RobotClientExecutor.java:213)
    at com.novayre.jidoka.client.ResponseHandler.execute(ResponseHandler.java:364)
    at com.novayre.jidoka.client.ResponseHandler.robotDeclaredResponse(ResponseHandler.java:314)
    at com.novayre.jidoka.client.ResponseHandler.onMessage(ResponseHandler.java:161)
    at com.novayre.jidoka.client.ClientManager.processResponse(ClientManager.java:1780)
    at com.novayre.jidoka.client.ClientManager.internalSendCommandRetry(ClientManager.java:1461)
    at com.novayre.jidoka.client.ClientManager.internalSendCommand(ClientManager.java:1321)
    at com.novayre.jidoka.client.ClientManager.sendCommand(ClientManager.java:1080)
    at com.novayre.jidoka.client.ClientManager.sendCommand(ClientManager.java:1069)
    at com.novayre.jidoka.client.ClientManager.loop(ClientManager.java:1060)
    at com.novayre.jidoka.client.ClientManager.realConnectToServer(ClientManager.java:943)
    at com.novayre.jidoka.client.ClientManager.connectToServer(ClientManager.java:901)
    at com.novayre.jidoka.client.JidokaClient.connect(JidokaClient.java:1134)
    at com.novayre.jidoka.client.JidokaClient.mainLoop(JidokaClient.java:738)
    at com.novayre.jidoka.client.JidokaClient.run(JidokaClient.java:724)
    at com.novayre.jidoka.client.JidokaClient.main(JidokaClient.java:433)
Caused by: java.nio.file.FileSystemException: C:\Users\astro\AppData\Local\Appian RPA\.\Jidoka-workspace\62ced40be4b01228753f64b2\62cdc018e4b01228753f648a\edgeWebDriver\msedgedriver.exe: The process cannot access the file because it is being used by another process
    at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
    at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
    at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484)
    at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
    at org.apache.commons.io.file.PathUtils.newOutputStream(PathUtils.java:1225)
    at org.apache.commons.io.file.PathUtils.newOutputStream(PathUtils.java:1216)
    at org.apache.commons.io.FileUtils.newOutputStream(FileUtils.java:2479)
    at org.apache.commons.io.FileUtils.writeByteArrayToFile(FileUtils.java:3309)
    at org.apache.commons.io.FileUtils.writeByteArrayToFile(FileUtils.java:3275)
    at org.apache.commons.io.FileUtils.writeByteArrayToFile(FileUtils.java:3261)
    at com.novayre.jidoka.client.FileJidokaClient.writeFile(FileJidokaClient.java:110)
    at com.novayre.jidoka.client.FileJidokaClient.downloadSupportFile(FileJidokaClient.java:85)
    at com.novayre.jidoka.client.FileJidokaClient.fileResponse(FileJidokaClient.java:60)
    at com.novayre.jidoka.client.ExecutorSequenceProvider.lambda$buildInitiationSequences$8(ExecutorSequenceProvider.java:146)
    at com.novayre.jidoka.client.lifecycle.PhaseStep.run(PhaseStep.java:56)
    ... 20 more

[INFO] 2024-11-14 22:57:43 - - Start of robotic task low-code Cleanup
[STAT] 2024-11-14 22:57:43 - - <ACTION_START> - Start action '[no-action]' - 'start' // dur: - - avg: - etc:
[STAT] 2024-11-14 22:57:43 - - <ACTION_END> - End action '[no-action]' - 'start' (transition through '' to 'section-b43c9abe-d7f5-4edc-a31c-5d4dfe7258c9') // dur: - - avg: - etc:
[STAT] 2024-11-14 22:57:43 - - <ACTION_START> - Start action 'robotic-subprocess->enterV2' - 'Enter Robotic Subprocess' // dur: - - avg: - etc:
[STAT] 2024-11-14 22:57:43 - - <ACTION_END> - End action 'robotic-subprocess->enterV2' - 'Enter Robotic Subprocess' (transition through '' to '[no-action]') // dur: - - avg: - etc:
[STAT] 2024-11-14 22:57:43 - - <ACTION_START> - Start action '[no-action]' - 'start' // dur: - - avg: - etc:
[STAT] 2024-11-14 22:57:43 - - <ACTION_END> - End action '[no-action]' - 'start' (transition through '' to 'section-0fdf1f86-d70f-4c78-8cae-6d009931f929--section-b43c9abe-d7f5-4edc-a31c-5d4dfe7258c9') // dur: - - avg: - etc:
[STAT] 2024-11-14 22:57:43 - - <ACTION_START> - Start action '[no-action]' - 'start' // dur: - - avg: - etc:
[STAT] 2024-11-14 22:57:43 - - <ACTION_END> - End action '[no-action]' - 'start' (transition through '' to 'browser->navigate-v2') // dur: - - avg: - etc:
[STAT] 2024-11-14 22:57:43 - - <ACTION_START> - Start action 'browser->navigate-v2' - 'Navigate to URL (ensure we are at top of page)' // dur: - - avg: - etc:
[INFO] 2024-11-14 22:57:43 - - End of robotic task low-code Cleanup
[INFO] 2024-11-14 22:57:43 - - Start of libraries Cleanup
[INFO] 2024-11-14 22:57:43 - - End of libraries Cleanup
[INFO] 2024-11-14 22:57:43 - - Start of robotic task java Cleanup
[INFO] 2024-11-14 22:57:43 - - End of robotic task java Cleanup
[ERROR] 2024-11-14 22:57:43 - - Exception thrown on agent...
com.novayre.jidoka.client.lifecycle.PhaseException: An exception occurred in phase step: Requesting files (REQ_FILES)
    at com.novayre.jidoka.client.lifecycle.PhaseStep.run(PhaseStep.java:58)
    at com.novayre.jidoka.client.lifecycle.PhaseSequenceRunner.execute(PhaseSequenceRunner.java:40)
    at com.novayre.jidoka.client.lifecycle.PhaseSequenceRunner.execute(PhaseSequenceRunner.java:24)
    at com.novayre.jidoka.client.RobotClientExecutor.execPhaseSequenceRunner(RobotClientExecutor.java:440)
    at com.novayre.jidoka.client.RobotClientExecutor.tryExecute(RobotClientExecutor.java:404)
    at com.novayre.jidoka.client.RobotClientExecutor.execute(RobotClientExecutor.java:213)
    at com.novayre.jidoka.client.ResponseHandler.execute(ResponseHandler.java:364)
    at com.novayre.jidoka.client.ResponseHandler.robotDeclaredResponse(ResponseHandler.java:314)
    at com.novayre.jidoka.client.ResponseHandler.onMessage(ResponseHandler.java:161)
    at com.novayre.jidoka.client.ClientManager.processResponse(ClientManager.java:1780)
    at com.novayre.jidoka.client.ClientManager.internalSendCommandRetry(ClientManager.java:1461)
    at com.novayre.jidoka.client.ClientManager.internalSendCommand(ClientManager.java:1321)
    at com.novayre.jidoka.client.ClientManager.sendCommand(ClientManager.java:1080)
    at com.novayre.jidoka.client.ClientManager.sendCommand(ClientManager.java:1069)
    at com.novayre.jidoka.client.ClientManager.loop(ClientManager.java:1060)
    at com.novayre.jidoka.client.ClientManager.realConnectToServer(ClientManager.java:943)
    at com.novayre.jidoka.client.ClientManager.connectToServer(ClientManager.java:901)
    at com.novayre.jidoka.client.JidokaClient.connect(JidokaClient.java:1134)
    at com.novayre.jidoka.client.JidokaClient.mainLoop(JidokaClient.java:738)
    at com.novayre.jidoka.client.JidokaClient.run(JidokaClient.java:724)
    at com.novayre.jidoka.client.JidokaClient.main(JidokaClient.java:433)
Caused by: java.nio.file.FileSystemException: C:\Users\astro\AppData\Local\Appian RPA\.\Jidoka-workspace\62ced40be4b01228753f64b2\62cdc018e4b01228753f648a\edgeWebDriver\msedgedriver.exe: The process cannot access the file because it is being used by another process
    at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:92)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
    at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
    at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:236)
    at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:484)
    at java.base/java.nio.file.Files.newOutputStream(Files.java:228)
    at org.apache.commons.io.file.PathUtils.newOutputStream(PathUtils.java:1225)
    at org.apache.commons.io.file.PathUtils.newOutputStream(PathUtils.java:1216)
    at org.apache.commons.io.FileUtils.newOutputStream(FileUtils.java:2479)
    at org.apache.commons.io.FileUtils.writeByteArrayToFile(FileUtils.java:3309)
    at org.apache.commons.io.FileUtils.writeByteArrayToFile(FileUtils.java:3275)
    at org.apache.commons.io.FileUtils.writeByteArrayToFile(FileUtils.java:3261)
    at com.novayre.jidoka.client.FileJidokaClient.writeFile(FileJidokaClient.java:110)
    at com.novayre.jidoka.client.FileJidokaClient.downloadSupportFile(FileJidokaClient.java:85)
    at com.novayre.jidoka.client.FileJidokaClient.fileResponse(FileJidokaClient.java:60)
    at com.novayre.jidoka.client.ExecutorSequenceProvider.lambda$buildInitiationSequences$8(ExecutorSequenceProvider.java:146)
    at com.novayre.jidoka.client.lifecycle.PhaseStep.run(PhaseStep.java:56)
    ... 20 more

[INFO] 2024-11-14 22:57:43 - - Memory: free 92.129Mb, reserved 125.723Mb (14%), limit 866.188Mb, maximum 866.188Mb
[INFO] 2024-11-14 22:57:43 - - Disk: free 0b (0%), total 126.447Gb
[INFO] 2024-11-14 22:57:43 - - Memory difference: free 0b, reserved 0b (0%)
[INFO] 2024-11-14 22:57:43 - - Disk difference: free 0b (0%)
[INFO] 2024-11-14 22:57:43 - -
****************************************************************************************************
Total number of items: #0
Result #Items
----------------------------------------------------------------------------------------------------
Result Duration #Index Item Key (Detail) [Properties]
****************************************************************************************************

Any help would be much appreciated, have had no luck with documentation for this one.

Thanks!

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    Hi, 

    Are you reinstalling the Appian RPA Agent? If not, please first delete the Appian RPA Agent folder (C:\Users\Dell\AppData\Local\Appian RPA) and also delete the downloaded RPA installer. Then, download a fresh RPA Agent installer and install it again. Make sure to check the RPA version as well (RPA version 9.12). Note: The agent requires Java 17 or above.

Reply
  • 0
    Certified Senior Developer

    Hi, 

    Are you reinstalling the Appian RPA Agent? If not, please first delete the Appian RPA Agent folder (C:\Users\Dell\AppData\Local\Appian RPA) and also delete the downloaded RPA installer. Then, download a fresh RPA Agent installer and install it again. Make sure to check the RPA version as well (RPA version 9.12). Note: The agent requires Java 17 or above.

Children