Suddenly getting "Could not find part of path" error with write text file

I am seemingly randomly getting an error that says “could not find part of path” on a write text file activity that has always worked up until now.

Any suggestions?

Hi @kasey.betts Welcome to the UiPath Community Forum.

This looks like syntax error. Use log message to print the path where the file needs to be saved and verify if it matches.

Thanks

It does match. Also, nothing about the path or the code has changed. It has always worked in the past and then suddenly started getting this error

@kasey.betts Can you please paste the stack trace, along with the path if possible

Write Text File: One or more errors occurred. (Could not find a part of the path ‘C:\Kasey\Bots\Closer\Performer_S4\Data\Output\20240129\105350\Log_ACQ_SIMPLE_WO_UDO_2\28\2023_20240129_105411.txt’.) (Could not find a part of the path ‘C:\Kasey\Bots\Closer\Performer_S4\Data\Output\20240129\105350\Log_ACQ_SIMPLE_WO_UDO_2\28\2023_20240129_105411.txt’.) (Could not find a part of the path ‘C:\Kasey\Bots\Closer\Performer_S4\Data\Output\20240129\105350\Log_ACQ_SIMPLE_WO_UDO_2\28\2023_20240129_105411.txt’.)

@kasey.betts Please copy this attached path and manually search in the Program Explorer, if it navigates to the correct path - remove the file name and only search the relative path. If it shows the file listed in the directory, then there is something wrong while passing it.

If it shows the path correct, check if you have proper permissions.

Write Text File: One or more errors occurred. (Could not find a part of the path) - this indicates that the specified file is either not there in directory or the path is different.

Thanks.

@kasey.betts - if it is working in the past, check if there is any change in folder permissions.