Facing Error (ErrorCode,string maybe FullPath)

Hi All,

sometimes i facing the below error and sometimes its working fine. please help me to resolve this issue.

“System.IO.FileNotFoundException: Could not find file ‘\fsshares001\B2BUS5ervPrd\Outbound\Attachments\US FAST Pay Discount\US-Project\PDF FOLDER\BillAnalysisReport_NAHMAD_5262551125.pdf.ee6a15w.partial’.
File name: ‘\fsshares001\B2BUS5ervPrd\Outbound\Attachments\US FAST Pay Discount\US-Project\PDF FOLDER\BillAnalysisReport_NAHMAD_5262551125.pdf.ee6a15w.partial’
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)
at .(String , String )
at .(String )
at BitMiracle.Docotic.Pdf.PdfDocument.Open(String fileName)
at BitMiracle.Docotic.Pdf.PdfDocument…ctor(String fileName)
at UiPath.PDF.PdfReader…ctor(String filePath, String password)
at UiPath.PDF.Activities.ReadPDFText.GetFileReader(String fileName, String password)
at UiPath.PDF.Activities.ReadTextFileActivity.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)”


hello @Meenakshi6246

your referring to a file which is downloaded partially.
there is also chance that the file can be fully downloaded then the file name will be BillAnalysisReport_NAHMAD_5262551125.pdf.

so better wait for sometime before referring to the file then use file name as BillAnalysisReport_NAHMAD_5262551125.pdf


hello @Ajju

Thanks for the response.

but ,I am not able to understand that what i have to use.
an you please explain it.

Hello @Meenakshi6246

can you explain more what is your process and what are steps ?