Digitize Document Failed Because Object Reference Not Set To An Instance Of An Object

Digitize Document activity fails with error: Object reference not set to an instance of an object.

The Digitize Document activity fails with error:"Object reference not set to an instance of an object", regardless of the OCR Engine selected (Tesseract, Microsodft, UiPath Document, etc)

Screenshot of the error:





Root Cause: The ApplyOcrOnPdf property was set to False or Auto.


Resolution:

  • Modify the property ApplyOcrOnPdf to: ApplyOcrOnPdfArgument.Yes (as in, true) .