-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import-Excel File Not Found string error #1618
Comments
The problem is with illegal chars in filepath because the module uses default |
The work around would be to rename the file removing brackets $newname = Rename-Item -LiteralPath <filepath> -NewName (split-path (<filepath> -replace '[\[\]\(\)]') -leaf) -PassThru
Import-Excel $newname.fullname |
Noted, however, doesn't even seem to work now if I have only underscores in the filename. 'C:\Users\username\Downloads\2024_7_2023_Compliance_Report.xlsm' file not found
|
I've modified my code based on what @scriptingstudio provided, and it's working. Thanks for the insights! |
It did not work because |
This wasn't using |
Not sure if this is an issue or a limitation, but getting these results.
Have tried encapsulating the full path in the command, still throws an error.
If I shorten the name, it seems to work fine.
'C:\Users\username\Downloads\Weekly_system_report [en] (All Locations)-2024-07-25 13-37-03.xlsx' file not found
At C:\Users\username\Documents\WindowsPowerShell\Modules\ImportExcel\7.8.9\Public\Import-Excel.ps1:119 char:21
The text was updated successfully, but these errors were encountered: