Read text file activity error?

I use read text file activity.
But after run it show error as below.

image

Please guide me about it.

Hi,

Can you run debug mode and share content of $exceptionDetails?

Regards,

Hello,

try to use Get attribute activity, it will give you output.

@Yoichi It can’t show $exceptionDetails.

Please guide me more for solve it.

Hi,

Because you set breakpoint at the activity. Please unset breakpoint OR press F5, F6 or F11 when it stops. Error will be raised, then check $exceptionDetails.

Regards,

@Yoichi I show error as below.

image

But not show exceptionDetails same you.

remark : details error as below.

RemoteException wrapping System.AggregateException: One or more errors occurred. —> RemoteException wrapping System.IO.FileNotFoundException: Could not find file ‘C:\Users\Tiffany\Desktop\save file\input\bodyMailReport.txt’.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader…ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
at System.IO.File.ReadAllText(String path, Encoding encoding)
at UiPath.Core.Activities.ReadTextFile.<>c__DisplayClass14_0.b__0()
at UiPath.Core.Activities.Retry.Do[ResultType](Func1 action, Int32 timeoutMS, Int32 retryCount) --- End of inner exception stack trace --- at UiPath.Core.Activities.TaskAsyncCodeActivityWithResult1.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity`1.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Please guide me for solve it.

Hi,

Thank you for sharing details. It shows the file does not exists you direct.

So, can you check if the file exists at the above?

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.