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 while extracting...
Power Automate
Unanswered

Error while extracting text with Windows OCR Engine

(0) ShareShare
ReportReport
Posted on by 4

I am trying to extract text from Jpeg file using Windows OCR engine. I used option of "Seach in subregion relative to Image" and reference image in the file is selected. Below is the error Message

  

Bharath_85_0-1647485564989.png

 

Location : Subflow: Main, Action: 15, Action name: Extract text with OCR

Error Message : Failed to extract text with OCR

Error detals :

Sequence contains no matching element: Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to extract text with OCR ---> System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source, Func`2 predicate)
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)

 

Please suggest how to extract the text

 

I have the same question (0)
  • Riyaz_riz11 Profile Picture
    4,048 Super User 2026 Season 1 on at

    Hi @Bharath_85 

     

    Can you try this one.

    Ahammad_Riyaz_0-1647496009400.pngAhammad_Riyaz_1-1647496083182.png

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Bharath_85 Profile Picture
    4 on at

    Hi Ahammad,

     

    I am getting error only when I am using "Seach in subregion relative to Image" option.... How to use Search in subregion relative to image option

  • VJR Profile Picture
    7,635 on at

    Can you take a look at this link. Go through all the responses in this link and something might ring a bell to you to know what to do.

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Extract-Text-with-OCR/td-p/1206603

  • Bharath_85 Profile Picture
    4 on at

    Hi VJR,

    Could not figure out the solution... still I am unable to extract text from "Subregion relative to image" option.. I tried by giving coordinates of image as well.. Please help 

     

  • VJR Profile Picture
    7,635 on at

    Hi @Bharath_85 

     

    Do some trial and error.

    - Make sure to give the correct X,Y and sub region images

    - Check if it extracts the text when "whole of specified source" is given.

     

    Although it is for WinAutomation but "Move Mouse to Text on Screen" will help to get some details on the co-ordinates.

    https://docs.winautomation.com/V9_0/en/move-mouse-to-text-on-screen--ocr--action.html#move-mouse-to-text-on-screen--ocr--action

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard