Issue in Data Extraction Scope (BitMiracle.Docotic.Pdf.UnexpectedStructureException)

I am facing issue in data extraction scope activity… Kindly help in resolving this issue…
System.InvalidOperationException: The activity ‘Machine Learning Extractor’ with ID 112 threw or propagated an exception while being canceled. —> UiPath.Shared.Activities.TrackingException: Request CorrelationId: 77f81c9b-725d-4fcb-bf9a-5938621c15a4
Request PredictionId: 0ehnDqYUDBkJKBBBSOJigjQWC4MU7PF8CQ6/h4368H8=_2c8e73a4-b750-4bc5-a500-ac0a6934f379
BitMiracle.Docotic.Pdf.UnexpectedStructureException: Unexpected PDF structure. Usually, it happens when the PDF document is malformed but may also indicate a bug in Docotic.Pdf library. Please send us the file for review.
at .()
at .()
at .( , IPdfStreamProvider , IFontLoader , IFallbackFontProvider , 1 ,  , Boolean ) at ..ctor( , Stream ,  ) at BitMiracle.Docotic.Pdf.PdfDocument.(Object ,  ,  ) at BitMiracle.Docotic.Pdf.PdfDocument..ctor(Stream stream, PdfConfigurationOptions options) at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticPdfDocument.<>c__DisplayClass21_0.<GetPdfDocument>b__0() at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticExceptionHelper.HandleDocoticExceptions[T](Func1 func) —> UiPath.DocumentUnderstanding.Digitizer.Exceptions.PdfException: BitMiracle.Docotic.Pdf.UnexpectedStructureException: Unexpected PDF structure. Usually, it happens when the PDF document is malformed but may also indicate a bug in Docotic.Pdf library. Please send us the file for review.
at .()
at .()
at .( , IPdfStreamProvider , IFontLoader , IFallbackFontProvider , 1 ,  , Boolean ) at ..ctor( , Stream ,  ) at BitMiracle.Docotic.Pdf.PdfDocument.(Object ,  ,  ) at BitMiracle.Docotic.Pdf.PdfDocument..ctor(Stream stream, PdfConfigurationOptions options) at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticPdfDocument.<>c__DisplayClass21_0.<GetPdfDocument>b__0() at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticExceptionHelper.HandleDocoticExceptions[T](Func1 func) at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticExceptionHelper.HandleDocoticExceptions[T](Func1 func) at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticPdfDocument.GetPdfDocument(Stream stream, String password, PdfConfigurationOptions options) at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticPdfDocument..ctor(Stream stream, PdfConfigurationOptions options, Boolean disposeUnderlyingStream) at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticPdfProcessor.OpenDocument(Stream stream, Boolean disposeUnderlyingStream) at UiPath.DocumentUnderstanding.Digitizer.Splitting.DocumentSplitter.GetPageCount(Stream input, String inputContentType) at UiPath.DocumentUnderstanding.ML.Converters.Base64StringConverter.ConvertPagesFromFile(String filePath, Boolean useHighRes) at UiPath.DocumentUnderstanding.ML.Services.MLClient.Extract(String documentPath, Document dom, Object metadata, Boolean withRetry, ExtractorDocumentType extractorDocumentType, String correlationId, String predictionId, CancellationToken ct, Nullable1 timeout)
at UiPath.DocumentUnderstanding.ML.Activities.MachineLearningExtractor.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
— End of inner exception stack trace —
at UiPath.DocumentUnderstanding.ML.Activities.MachineLearningExtractor.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at UiPath.DocumentUnderstanding.ML.Activities.ExtractorAsyncTaskActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of inner exception stack trace —
at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticExceptionHelper.HandleDocoticExceptions[T](Func1 func) at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticPdfDocument.GetPdfDocument(Stream stream, String password, PdfConfigurationOptions options) at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticPdfDocument..ctor(Stream stream, PdfConfigurationOptions options, Boolean disposeUnderlyingStream) at UiPath.DocumentUnderstanding.Digitizer.Pdf.Docotic.DocoticPdfProcessor.OpenDocument(Stream stream, Boolean disposeUnderlyingStream) at UiPath.DocumentUnderstanding.Digitizer.Splitting.DocumentSplitter.GetPageCount(Stream input, String inputContentType) at UiPath.DocumentUnderstanding.ML.Converters.Base64StringConverter.ConvertPagesFromFile(String filePath, Boolean useHighRes) at UiPath.DocumentUnderstanding.ML.Services.MLClient.Extract(String documentPath, Document dom, Object metadata, Boolean withRetry, ExtractorDocumentType extractorDocumentType, String correlationId, String predictionId, CancellationToken ct, Nullable1 timeout)
at UiPath.DocumentUnderstanding.ML.Activities.MachineLearningExtractor.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)

Hi @lakshmi.devi ,

Could you try re-installing the packages and check ?

Also, Check whether a Simple PDF is able to be processed.

@lakshmi.devi

Just change the version of your pckages and it should be working …unless the pdf is corrupted…so first check with a different pdf document

Cheers

Thank you for your suggesstion already I tried but similar error…

@lakshmi.devi

Can you please confirm what version you are using

also did you try with any other pdf? is it the same error?

cheers