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 / PAD failed to extract ...
Power Automate
Answered

PAD failed to extract text with OCR

(0) ShareShare
ReportReport
Posted on by 17

I am currently running PAD version 2.36.140.23262 with Windows 10. Since upgrading to this version, my flows that use OCR are now failing.

 

To test this, I created a simple, one action flow:

schill27_0-1696355248758.png

Running the flow produces two different error messages, depending on file type.

 

For .JPG I get:

Correlation Id: 80a01f50-e3b6-4070-9277-a609b2892d38

 

Out of memory.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to extract text with OCR ---> System.OutOfMemoryException: Out of memory.

   at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)

   at Microsoft.Flow.RPA.Desktop.Modules.OCR.Utilities.Variants.TesseractOCREngineFacadeToVariant.GetText(List`1 imagePathsToProcess)

   at Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.<Execute>b__52_2(String path)

   at Microsoft.Flow.RPA.Desktop.Modules.OCR.Utilities.Utilities.SaveImageOnDiskAndExcecute[T](Image image, Func`2 imageProcessor)

   at Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context)

   --- End of inner exception stack trace ---

   at Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context)

   at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

For .PDF/.TIFF/.TXT, I get:

Correlation Id: 80a01f50-e3b6-4070-9277-a609b2892d38

 

Parameter is not valid.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to extract text with OCR ---> System.ArgumentException: Parameter is not valid.

   at System.Drawing.Bitmap..ctor(Stream stream)

   at Microsoft.Flow.RPA.Desktop.Modules.OCR.Utilities.Utilities.GetBitmapFromFile(String imageFilepath)

   at Microsoft.Flow.RPA.Desktop.Modules.OCR.Utilities.Utilities.GetImageForOCR(OCRSource source, SourceScanMode sourceScanMode, Nullable`1 scanRegionX1, Nullable`1 scanRegionY1, Nullable`1 scanRegionX2, Nullable`1 scanRegionY2, IEnumerable`1 imagesToFind, Int32 tolerance, Boolean waitForImage, Boolean timeoutSet, Nullable`1 timeout, Nullable`1 searchRegionImageX1, Nullable`1 searchRegionImageY1, Nullable`1 searchRegionImageX2, Nullable`1 searchRegionImageY2, Action suspendSecureScreen, Action restoreSecureScreen, String imageFilepath, IImageFinder imageFinder)

   at Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context)

   --- End of inner exception stack trace ---

   at Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context)

   at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

 

Is this an issue with the current version of PAD or has OCR changed?

I have the same question (0)
  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If it worked in a previous version, but does not work after an update, it likely is a bug. I suggest reporting this as a bug to MS support and having them fix it. In the meantime, if you actually need the functionality, I suggest rolling back to a previous working version. If you do not have an installer for that, you can ask MS support to provide it to you.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • LuisAznar Profile Picture
    69 on at

    Out of Memory error after Power Automate Desktop update

    I recently updated Power Automate Desktop to the latest version, and since then I have been experiencing Out of Memory errors when trying to run certain flows. I have tried restarting my computer and Power Automate Desktop, but the errors persist.

    I have also tried installing older versions of Power Automate Desktop, but I cannot find the installers for these versions in the documentation. Does anyone know where I can download older versions of Power Automate Desktop, or how to contact Microsoft Support about this issue?

    Correlation Id: e7866e7c-546d-47a9-a3fa-0324b99f8f52

    Error message:

    Out of memory.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to extract text with OCR ---> System.OutOfMemoryException: Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at Microsoft.Flow.RPA.Desktop.Modules.OCR.Utilities.Variants.WindowsOCREngineFacadeToVariant.GetText(List1 imagePathsToProcess) at Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.<Execute>b__52_2(String path) at Microsoft.Flow.RPA.Desktop.Modules.OCR.Utilities.Utilities.SaveImageOnDiskAndExcecuteT: Image image, Func2 imageProcessor at Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context) --- End of inner exception stack trace --- at Microsoft.Flow.RPA.Desktop.Modules.OCR.Actions.ExtractTextWithOCRBase.Execute(ActionContext context) at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary2 inputArguments, Dictionary2 outputArguments)

     

  • schill27 Profile Picture
    17 on at

    I was able to find some older versions here: Install Power Automate - Power Automate | Microsoft Learn. Versions 2.32 and earlier downloads can be found in the yellow warning panel. Note, 2.33 actually links to the newest version, so avoid that.

  • LuisAznar Profile Picture
    69 on at

    Thanks, it works for me with 2.32 version but when I tried to open the flow with the 2.32 version it tells me that:

    "This flow has been generated by a newer Power Automate version than the one currently installed. Download and install the latest version of Power Automate and try again".
    Does anyone knows which version is the more stable with this OCR Action?

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Well, if you have edited your flow with the latest version, it will likely not work with any previous version anyway. But I would suggest trying to revert to the one you had previous to the update. If you do not know which version you were on, you can try looking for the installation logs in the Application logs under the Windows Event Viewer.

     

    Again, this seems like a bug and you'd be best to contact MS support about it. They can then fix it, and also possibly provide an installer for a previous version. Most installers for previous versions are not publicly available.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    If your issue got resolved by reverting to a previous version, can I suggest marking my reply as an accepted solution?

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard