Main.xaml (51.8 KB) project.json (859 Bytes) Run time execution error, Source: Read pdf text, Message: unexpected PDF structure. This exception usually indicates that PDF document is malformed but may also indicate a bug in the docotic.pdf library. Please send us file for review., Exception Type: Bitmiracle.docotic.pdf.unexpectedstrucureexception?
What is this error? Is there any workaround for this? Please help it ran fine once and then this horror pops up every time thereafter.
RemoteException wrapping BitMiracle.Docotic.Pdf.UnexpectedStructureException: Unexpected PDF structure. This exception usually indicates that PDF document is malformed but also may indicate a bug in Docotic.Pdf library. Please send us a file for review.
{ at î.îŚ()
at î.î()
at î˘.Parse(IPdfStreamProvider streamProvider, String password, Boolean forAppendOnly)
at î.îź(Stream î, String î)
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)}
Would someone please tell me what to do here? Iâm really stumped and at a loss, all I wanted to do was extract the OrderID from the PDF file? why is this so difficult?
I donât think itâs an issue with PDF file. I can read the PDF file without issues. Try reinstalling / updating the PDF activities using âManage Packagesâ.
@karavinds hi I may have ticked an irrelevant pdf package by accident and this is why it started throwing out this exception. But I am trying on different workflow now and it seems to be working. I tried reinstalling and/or updating but I get this error:
Hello, i have the same error:
RemoteException wrapping System.Exception: An unexpected error has occurred: This build of Docotic.Pdf library requires maintenance through 22 December 2018.Your license includes maintenance through 14 June 2017. Please update your license at Pricing for Docotic.Pdf Library - Bit Miracle
Hi Luis no youâre not the only one A few of my colleagues installed some custom pdf packages for the purposes of a case study and the workflow executed fine for a day, then the next day it returned the same error and would not run. Unfortunately the only way to get your workflow to run again would be to migrate it to a new file and ensure you only have the âUIPath.PDF.Activitiesâ package installed this time round. Also do not copy and paste the activities of the workflow as it seems the error pops up again.
Hello Taariq, you were right! It is working now! I started a new project, with no pdf tools installed. I installed only the âUIPath.PDF.Activitiesâ package, didnât paste the activities and it works!
Now I have another error, an Unsupported file type in the Machine Learning Extractor, but thatâs another story. THANK YOU VERY MUCH!!!
@Luis_Martirena
Hi Luis_Martirena,
Did you fixed the Machine Learning Extractor Error, Because i too have the same issue. I want to add machine learning extractor activity with âApi keyâ and âEnd pointâ properties. the old one does not have âApi keyâ Property. It works only on the updated Machine learning extractor. If i try to update it , the bot throws error at the digitize document property. Can you help me to solve this error?
Thanks in advance!!!
@Taariq please upgrade to the latest PDF version, this issue should go away. Please ensure you do the same for the IntelligentOCR package (if you use it) and the beta MachineLearningPackage (if you use it).
THanks!
This is because the Pdf file you are selecting creates a thumbnail form and the read pdf activity automatically taking the thumbnail file and so it is throwing the error. Please enusre that file location should not be at the thumbnail form of file.