Skip to content

[BUG] microsoft_onedrive-find-file-by-name returns no results for existing OneDrive files #21075

@TheDanubian

Description

@TheDanubian

The microsoft_onedrive-find-file-by-name action does not find an existing OneDrive file, even when the exact filename is provided.

In our test, the file cegesautoflotta.xlsx exists in OneDrive under the Bob folder, but the action returned no results.

What makes this more confusing is that another OneDrive action was able to reveal the folder structure indirectly.

The successful related call was:

microsoft_onedrive-list-files-in-folder
{
  "q": "Számlák",
  "drive": "CA07A40F50E43DD9",
  "excludeFolders": false
}

It returned the folder Számlák, whose parentReference showed:

{
  "driveId": "ca07a40f50e43dd9",
  "driveType": "personal",
  "id": "CA07A40F50E43DD9!s13953d10a03d45ca85edeaa8bc1d161a",
  "name": "Bob",
  "path": "/drive/root:/Bob"
}

So the system can see the OneDrive drive and the Bob path. However, when searching directly for a known file inside that location, the file-name search action fails.

The failing call was:

microsoft_onedrive-find-file-by-name
{
  "name": "cegesautoflotta.xlsx",
  "excludeFolders": true
}

That returned no result.

To Reproduce

  1. Have a OneDrive folder structure like:

    Bob/
      cegesautoflotta.xlsx
      Számlák/
    
  2. Run microsoft_onedrive-list-files-in-folder with:

    {
      "q": "Számlák",
      "drive": "CA07A40F50E43DD9",
      "excludeFolders": false
    }
    
  3. Observe that the action returns the Számlák folder and its parent path:

    /drive/root:/Bob
    
  4. Then run microsoft_onedrive-find-file-by-name with:

    {
      "name": "cegesautoflotta.xlsx",
      "excludeFolders": true
    }
    
  5. Observe that it returns no result, even though the file exists in the Bob folder.

Expected behavior

microsoft_onedrive-find-file-by-name should return the existing file cegesautoflotta.xlsx.

At minimum, if the action searches only a limited scope, the action documentation or output should make that clear. Ideally, it should support searching by filename across the selected drive, or allow passing a folder/path/drive parameter so the search can be scoped explicitly.

Additional context

This is affecting our ability to locate OneDrive files reliably by name.

The filename was checked and is not believed to be misspelled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions