Skip to main content
Navigator | Tier 3
July 17, 2026
Solved

"File Path cannot be blank. Please verify the input of the command action."

  • July 17, 2026
  • 8 replies
  • 92 views

Received this error when using the Sharepoint Upload Files action. What is the cause of this precisely? 
 

 

    Best answer by Chris 621

    I figured it out. Some how when I copied over the variables for the upload action, the first letter in the (file “name”) key in the Dictionary variable became capitalized (you can see it in the file “name” screenshot above), whereas it’s setup as lower case. The use of dictionaries in AA can be very tricky.
     

     

    8 replies

    Aaron.Gleason
    Automation Anywhere Team
    Automation Anywhere Team
    July 17, 2026

    @Chris 621 Our documentation site has a good explanation:

    https://docs.automationanywhere.com/r/cloud-build/cloud-work-area/cloud-commands-panel/cloud-sharepoint-package/sharepoint-folder-file-overview/sharepoint-upload-file

    Apparently, it returns the full SharePoint path, maybe for verification or sharing.

    Chris 621Author
    Navigator | Tier 3
    July 17, 2026

    AA documentation is not helpful (rarely is) and not detailed enough. It’s coming back blank, as you can see.

    Aaron.Gleason
    Automation Anywhere Team
    Automation Anywhere Team
    July 17, 2026

    @Chris 621 Sorry, I do not see. Did you forget to upload a screen shot?

    Anyway, are you using the legacy SharePoint REST API setting (in the Connect action) or the new Graph API setting? There have been reports that the old REST API is not working anymore, or possibly not fully operational anymore.

    By the way, if the AA documentation isn’t helpful, please use the option at the bottom of any page to give feedback. Without feedback, we cannot improve.

    Chris 621Author
    Navigator | Tier 3
    July 17, 2026

    Using the SharePoint REST API setting, which is working for other actions just fine thus far?

    Chris 621Author
    Navigator | Tier 3
    July 17, 2026

     

    Aaron.Gleason
    Automation Anywhere Team
    Automation Anywhere Team
    July 17, 2026

    @Chris 621 This is an odd error. The documentation reads that the “File Path” string variable is set by the Upload file action. 

    Let’s check a few things to ensure the error message itself isn’t misleading us.

    • Please check the contents of your variables (FolderVendorName, CurrentFileNameAndExtension(), FolderDownload, etc.) to ensure they have the expected values.
    • If those are correct, try pre-filling the UnusedSharePointFilePath variable with some value ahead of time. This variable should be a value getting set, but I wonder if something is causing it to be read.

    Let’s see where that takes us. I’ll try with our own SharePoint site on my side.

    Chris 621AuthorAnswer
    Navigator | Tier 3
    July 17, 2026

    I figured it out. Some how when I copied over the variables for the upload action, the first letter in the (file “name”) key in the Dictionary variable became capitalized (you can see it in the file “name” screenshot above), whereas it’s setup as lower case. The use of dictionaries in AA can be very tricky.
     

     

    Aaron.Gleason
    Automation Anywhere Team
    Automation Anywhere Team
    July 17, 2026

    @Chris 621 As I liked to say in our instructor-led trainings: “Everything is case-sensitive, even when it’s not.”  🤣

    Good job locating the issue.  🎉