none
"The process cannot access the file "file.text" because it is being used by another process". RRS feed

  • Question

  • I have a PowerShell script which process SSAS cubes using schudling agent some time i get the following error is there away to  find what process is reason for this error and if there is away after finding the process to kill it.

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


    Tuesday, February 4, 2020 8:13 PM

All replies

  • Sorry - not a scripting question.  If a file is in use you will have to wait until it is no longer in use.

    Killing a process in a production system is a very bad idea and can cause a system to crash. In a network the file can be open by any process in the network.

    You need to ask the person who wrote your script to help you understand this and change the script to work correctly when a file is in use.


    \_(ツ)_/

    Tuesday, February 4, 2020 8:22 PM