Taxonomy1

when use digitize document activity below error is come then what i do

Digitize Document: One or more errors occurred. (Method not found: ‘System.IO.Stream UiPath.DocumentUnderstanding.Digitizer.Preprocessing.PageRendererResults.get_BitmapStream()’.)

Hi @Yogita_Gaikwad1

Check on this thread

Changed OCR Engine (UiPath Documnet Ocr ) And Issue Resolve

I hope it helps!!

Hi @Yogita_Gaikwad1

Try Updating the DocumentUnderstanding packages and restart the studio
Change the OCR Engine

Hope it helps!!

Hi @Yogita_Gaikwad1

Try updating the dependencies and restart the studio.
And change the OCR Engine to another.

Hi @Yogita_Gaikwad1

Try to change the OCR Engine.

Hope it helps!!

@Yogita_Gaikwad1 hii , Changed OCR Engin,In my Case when I used the OMni page ocr engine then occurred but when I changed ocr engine then issue resolved

i have changed ocr but again this error is come

Which OCR do you using? @Yogita_Gaikwad1

UiPath Document OCR this OCR i use

Could you please change it to Omnipage OCR.
To use this OCR you have to install the UiPath.Omnipage.activities package. @Yogita_Gaikwad1

Use the Omnipage OCR and check. If you are getting same error let me know.

I already check with all OCR

Dear Mahesh,

I am also getting the same error even though i tried using both omniPage OCR, UiPath documnet ocr and also tessarect ocr but i still get the error:-

Digitize Document: One or more errors occurred. (Method not found: ‘System.IO.Stream UiPath.DocumentUnderstanding.Digitizer.Preprocessing.PageRendererResults.get_BitmapStream()’.)

Please note documents are scanned images in form of pdfs and i was trying to extract information from one of the pdf in text format. Also do we need to pass API key inside while using the UiPath documnet ocr .

Can you please help me in resolving this issue.

This communication addresses a potential issue encountered when utilizing the “Digitize Document” activity within UiPath Studio for Optical Character Recognition (OCR). The specific error message, “Digitize Document: One or more errors occurred. (Method not found: ‘System.IO.Stream UiPath.DocumentUnderstanding.Digitizer.Preprocessing.PageRendererResults.get_BitmapStream()’.)”, indicates a problem related to retrieving the image data from processed document pages for OCR processing.

Error Analysis

The error suggests an incompatibility between the PageRendererResults.get_BitmapStream() method and your UiPath environment. Potential causes include:

  1. Version Mismatch:
  • An incompatibility might exist between your UiPath Studio version and the UiPath.DocumentUnderstanding package version.
  1. Package Issues:
  • The UiPath.DocumentUnderstanding package might be missing essential files or be corrupt, hindering access to the aforementioned method.
  1. UiPath Studio older version (Less Likely):
  • In rare instances, a bug within UiPath Studio itself could be the root cause.

Resolutions

To effectively troubleshoot and resolve this error, follow these steps:

  1. Verify Version Compatibility:
  • Consult UiPath’s documentation for compatibility details regarding your UiPath Studio version and the required UiPath.DocumentUnderstanding package version.
  • If necessary, update or downgrade your UiPath Studio or UiPath.DocumentUnderstanding package versions to ensure compatibility.
  1. Reinstall UiPath.DocumentUnderstanding Package:
  • Through the Manage Packages window in UiPath Studio, reinstall the UiPath.DocumentUnderstanding package. This ensures proper installation of all necessary files.
  1. Update UiPath Studio (if applicable):
  • Consider updating UiPath Studio to the latest version if the previous steps don’t resolve the issue. Bug fixes and improvements might be included in the update.
  1. Examine UiPath Logs (Advanced Troubleshooting):
  • For more in-depth analysis, review the UiPath logs for detailed error messages. These might offer additional clues about the root cause.
  1. Review “Digitize Document” Activity Properties:
  • Double-check the configuration of the “Digitize Document” activity’s properties. This includes elements like:
    • OCR Engine selection (e.g., Google OCR, Microsoft OCR)
    • File paths
    • Output variable types

Best Practices for Robust OCR in UiPath

To optimize your OCR workflow in UiPath, consider these practices:

  1. **Document Quality: [

We have asked our vendor to provide the high DPI Images and asked improved the font - "you can ask them to remove the water markets from Image or document

"]**

  • Use high-quality, well-lit document scans or images for enhanced OCR accuracy.
  1. Language Settings:
  • Specify the correct document language within the “Digitize Document” activity to improve OCR engine performance.
  1. Error Handling:
  • Implement robust error handling mechanisms to gracefully capture and address potential OCR errors encountered during processing.
  1. Thorough Testing:
  • Extensively test your OCR automation with a variety of document types and scenarios to ensure its reliability.

Additional Considerations

If the outlined solutions don’t completely resolve the error, please provide more particulars about your UiPath setup, including:

  • Specific UiPath Studio version
  • UiPath.DocumentUnderstanding package version
  • Types of documents you’re processing
1 Like