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
-
Have a OneDrive folder structure like:
Bob/
cegesautoflotta.xlsx
Számlák/
-
Run microsoft_onedrive-list-files-in-folder with:
{
"q": "Számlák",
"drive": "CA07A40F50E43DD9",
"excludeFolders": false
}
-
Observe that the action returns the Számlák folder and its parent path:
-
Then run microsoft_onedrive-find-file-by-name with:
{
"name": "cegesautoflotta.xlsx",
"excludeFolders": true
}
-
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.
The
microsoft_onedrive-find-file-by-nameaction does not find an existing OneDrive file, even when the exact filename is provided.In our test, the file
cegesautoflotta.xlsxexists in OneDrive under theBobfolder, 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:
It returned the folder
Számlák, whoseparentReferenceshowed:So the system can see the OneDrive drive and the
Bobpath. However, when searching directly for a known file inside that location, the file-name search action fails.The failing call was:
That returned no result.
To Reproduce
Have a OneDrive folder structure like:
Run
microsoft_onedrive-list-files-in-folderwith:Observe that the action returns the
Számlákfolder and its parent path:Then run
microsoft_onedrive-find-file-by-namewith:Observe that it returns no result, even though the file exists in the
Bobfolder.Expected behavior
microsoft_onedrive-find-file-by-nameshould return the existing filecegesautoflotta.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.