Robotic Process Automation (RPA)

 View Only
  • 1.  Can't copy a file

    Posted Thu February 29, 2024 10:44 AM

    Hi, my bot is trying to cpoy a file, but doesn't work, this message error

    2/29/2024 10:35:31 AM - Error executing command at line 8: fileCopy --from "${misDocumentos}" --to "${backupFolder}"
        Access to the path 'C:\Users\EfectivaVPN\Documents' is denied.

    This the script

    defVar --name misDocumentos --type String
    defVar --name cantidadArchivos --type Numeric
    defVar --name backupFolder --type String
    getSpecialFolder --folder "MyDocuments" misDocumentos=value
    countFiles --path "${misDocumentos}\\sesion03\\Folder01" cantidadArchivos=value
    messageBox --title "Cantidad de archivos" --text "Cantidad: ${cantidadArchivos}" --icon "Information" --buttons "OK" --defaultbutton "FirstButton"
    createDir --path "${misDocumentos}\\sesion03\\folder01\\Backup" backupFolder=value
    fileCopy --from "${misDocumentos}" --to "${backupFolder}"

    Thanks for your help



    ------------------------------
    Alex Virrueta
    ------------------------------


  • 2.  RE: Can't copy a file

    IBM Champion
    Posted Fri March 01, 2024 06:41 AM

    Hi Alex.

    The root cause of this issue might be folder permissions. Can you please check if the Windows user used to run the automation has Read/Write permission to the 'C:\Users\EfectivaVPN\Documents' folder?

    This tutorial from Microsoft might be helpful to you (expand 'Issue 1' to see details): https://support.microsoft.com/en-gb/topic/-access-denied-or-other-errors-when-you-access-or-work-with-files-and-folders-in-windows-219af563-1953-ab4a-f17e-b0182755214e



    ------------------------------
    Vinicius Marques
    ------------------------------



  • 3.  RE: Can't copy a file

    Posted Mon March 04, 2024 09:37 AM

    Hi Vinicius,

    Thanls for your answer. This folder has read/write permissions. File deletions in this folder works correctly.



    ------------------------------
    Alex Virrueta
    ------------------------------



  • 4.  RE: Can't copy a file

    IBM Champion
    Posted Mon March 04, 2024 05:19 PM

    Can you perform the file operation using a CMD or Powershell command? That could even direct us if it is an issue in IBM RPA or a permission problem.



    ------------------------------
    Vinicius Marques
    ------------------------------