web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error using Extract Te...
Power Automate
Unanswered

Error using Extract Text with OCR

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey there support and community heroes! 

 

So I am following this pretty nice exercise and everything is going nice and smoothly until the Extract Text with OCR action kicks in and errors out:

Fjalar_0-1621523340168.png

 

I have been trying to find info online regarding this but no luck so far. I was trying to find a way to perhaps install/reinstall MODI but even that doesn't seem to work (Installed MDI to TIFF file converter as mentioned here https://www.microsoft.com/en-us/download/details.aspx?id=30328)

 

Any ideas? 

 

Here is the error report:

 

Failed to activate MODI component in code (has MODI been properly installed?). Original exception:

 

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Robin.BridgeToMODIx86.OCRActionsx86Impl.ExtractTextWithMODI(String sourceImageFilepath, OCRMODILanguage ocrLanguage, Boolean tryIncludeImageInExceptionIfAnErrorOccurs):

Robin.Core.ActionException: Failed to extract text with OCR ---> Robin.Shared.Runtime.ActionException: Failed to activate MODI component in code (has MODI been properly installed?). Original exception:

 

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at Robin.BridgeToMODIx86.OCRActionsx86Impl.ExtractTextWithMODI(String sourceImageFilepath, OCRMODILanguage ocrLanguage, Boolean tryIncludeImageInExceptionIfAnErrorOccurs) ---> System.Exception: Retrieving the COM class factory for component with CLSID {40942A6C-1520-4132-BDF8-BDC1F71F547B} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
--- End of inner exception stack trace ---
at Robin.Modules.OCR.Utilities.Variants.MODIOCREngineFacadeToVariant.PerformServerOperationSafe[T](Func`1 operation)
at Robin.Modules.OCR.Utilities.Variants.MODIOCREngineFacadeToVariant.GetText(List`1 imagePathsToProcess)
at Robin.Modules.OCR.Actions.ExtractTextWithOCRBase.<Execute>b__52_2(String path)
at Robin.Modules.OCR.Utilities.Utilities.SaveImageOnDiskAndExcecute[T](Image image, Func`2 imageProcessor)
at Robin.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Robin.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context)
at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

I have the same question (0)
  • seewo Profile Picture
    59 on at

    Upgrage to newest version for PAD and You can perform the initialization directly through the actions that require the engines without using the Create Tesseract OCR engine action:

    PIC_2021-05-28_15-35-50.png

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes, the Tesseract engine works good. Always good when something works 🙂

    The MODI engine has issues, it seems.

     

    Thanks.

  • henryhvb5 Profile Picture
    46 on at

    Now the Tesseract engine is not work after update to 2.14xx version, what should I do ? 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard