Can I please get assisted on this: error
UiPath error: second path fragment must not be a drive
All this time I have been using this activity all along to access the file the file path on the shared drive and the file name hasn’t changed but all of a sudden it throws this error today:
The issue is with the second parameter you’re passing to Directory.GetFiles. That parameter is meant to be a search pattern (like a wildcard for the file name), not a path. When you put a leading backslash \ in front of it, the system gets confused and tries to read it as a path itself, which throws the error.
Fix is simple - just remove the leading backslash from the search pattern: