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()’.)
@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 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 .
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:
Version Mismatch:
An incompatibility might exist between your UiPath Studio version and the UiPath.DocumentUnderstanding package version.
Package Issues:
The UiPath.DocumentUnderstanding package might be missing essential files or be corrupt, hindering access to the aforementioned method.
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:
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.
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.
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.
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.
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:
**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.
Language Settings:
Specify the correct document language within the “Digitize Document” activity to improve OCR engine performance.
Error Handling:
Implement robust error handling mechanisms to gracefully capture and address potential OCR errors encountered during processing.
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: