Question

2
Replies
48
Views
JasonM78 Member since 2018 3 posts
Southern California Edison
Posted: 1 year ago
Last activity: 1 year 4 months ago
Closed
Solved

OCR example on Notepad not working

I have set up a simple automation just to validate that the OCR methods work. See attached. I get the following output in RuntimeLog.txt:

Verbose | 03:54:08.699 PM | 12 | STA | Web Adapter | | | WindowsProcess.HandleExitIdle - Exit
Verbose | 03:54:08.699 PM | 12 | STA | Windows Adapter | CalcApplication1 | | WindowsProcess.OnIdle - Exit
Info | 03:54:14.280 PM | 9 | STA | ExecutionTracker | | | RegisterArgs: 768151d6-08ca-4068-922d-fc07fb69247f 12480248
Info | 03:54:14.292 PM | 9 | STA | Playback | | Mult_2_4-41409183 | Start^SessionId=768151d6-08ca-4068-922d-fc07fb69247f;TimeStamp=03:54:14.292;AutxId=Automator-8D6D48FE84E76D4
Info | 03:54:14.293 PM | 9 | STA | Playback | | Mult_2_4-41409183 | Link^SessionId=768151d6-08ca-4068-922d-fc07fb69247f;TimeStamp=03:54:14.293;AutxId=Automator-8D6D48FE84E76D4;LinkId=14;ThreadId=9
Info | 03:54:14.294 PM | 9 | STA | Automation | Mult_2_4 | CalcProj | Automation: Mult_2_4 - ExecutionLink From: TestForm.btnSearch.Click To: TestForm.lblResult.Properties ID: 768151d6-08ca-4068-922d-fc07fb69247f
Info | 03:54:14.297 PM | 11 | MTA | ExecutionTracker | | | RegisterArgs: 768151d6-08ca-4068-922d-fc07fb69247f 39086322
Info | 03:54:14.297 PM | 11 | MTA | ExecutionTracker | | | RegisterArgs: 768151d6-08ca-4068-922d-fc07fb69247f 12480248
Info | 03:54:14.301 PM | 9 | STA | Playback | | Mult_2_4-41409183 | End^SessionId=768151d6-08ca-4068-922d-fc07fb69247f;TimeStamp=03:54:14.301
Verbose | 03:54:14.302 PM | 9 | STA | Automation | Mult_2_4 | CalcProj | Automation: Mult_2_4 - Executed From: TestForm.btnSearch.Click To: TestForm.lblResult.Properties ID: 768151d6-08ca-4068-922d-fc07fb69247f
Info | 03:54:14.311 PM | 9 | STA | ExecutionTracker | | | UnRegisterArgs: 768151d6-08ca-4068-922d-fc07fb69247f 12480248
Verbose | 03:54:14.318 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Info | 03:54:14.318 PM | 11 | MTA | Playback | | Mult_2_4-41409183 | Link^SessionId=768151d6-08ca-4068-922d-fc07fb69247f;TimeStamp=03:54:14.318;AutxId=Automator-8D6D48FE84E76D4;LinkId=16;ThreadId=11
Info | 03:54:14.318 PM | 11 | MTA | Automation | Mult_2_4 | CalcProj | Automation: Mult_2_4 - ExecutionLink From: TestForm.lblResult.Properties To: TestForm.txtFoundValue.Properties ID: 768151d6-08ca-4068-922d-fc07fb69247f
Verbose | 03:54:14.318 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Info | 03:54:14.319 PM | 11 | MTA | Playback | | Mult_2_4-41409183 | Link^SessionId=768151d6-08ca-4068-922d-fc07fb69247f;TimeStamp=03:54:14.319;AutxId=Automator-8D6D48FE84E76D4;LinkId=34;ThreadId=11
Info | 03:54:14.319 PM | 11 | MTA | Automation | Mult_2_4 | CalcProj | Automation: Mult_2_4 - ExecutionLink From: TestForm.txtFoundValue.Properties To: CalcApplication1.Untitled_Subtraction_Notepad.GetValueByOcr() ID: 768151d6-08ca-4068-922d-fc07fb69247f
Info | 03:54:14.324 PM | 11 | MTA | Automation | Mult_2_4 | CalcProj | Automation: Mult_2_4 propagating From: TestForm.txtSearchValue.Text To CalcApplication1.Untitled_Subtraction_Notepad.GetValueByOcr().text Value: File
Verbose | 03:54:14.325 PM | 11 | MTA | Automation | Mult_2_4 | CalcProj | Automation: Mult_2_4 propagated From: TestForm.txtSearchValue.Text To: CalcApplication1.Untitled_Subtraction_Notepad.GetValueByOcr().text
Info | 03:54:14.334 PM | 11 | MTA | Adapters | CalcApplication1 | Untitled_Subtraction_Notepad-26140383 | Control.GetValueByOcr : Using OCR to get value with Text: [File], Search Position: Right, Distance From: FromStart, Distance Limit: 120
Verbose | 03:54:14.337 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Warning | 03:54:14.337 PM | 11 | MTA | ExecutionTracker | | | ExecutionTracker.EnterWait() - Unable to find ExecutionInfo for ExecutionArgs: 768151d6-08ca-4068-922d-fc07fb69247f
Verbose | 03:54:14.337 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Warning | 03:54:14.337 PM | 11 | MTA | ExecutionTracker | | | ExecutionTracker.ExitWait() - Unable to find ExecutionInfo for ExecutionArgs: 768151d6-08ca-4068-922d-fc07fb69247f
Verbose | 03:54:14.338 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Warning | 03:54:14.338 PM | 11 | MTA | ExecutionTracker | | | ExecutionTracker.EnterWait() - Unable to find ExecutionInfo for ExecutionArgs: 768151d6-08ca-4068-922d-fc07fb69247f
Verbose | 03:54:14.338 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Warning | 03:54:14.339 PM | 11 | MTA | ExecutionTracker | | | ExecutionTracker.ExitWait() - Unable to find ExecutionInfo for ExecutionArgs: 768151d6-08ca-4068-922d-fc07fb69247f
Verbose | 03:54:14.340 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Warning | 03:54:14.341 PM | 11 | MTA | ExecutionTracker | | | ExecutionTracker.EnterWait() - Unable to find ExecutionInfo for ExecutionArgs: 768151d6-08ca-4068-922d-fc07fb69247f
Verbose | 03:54:14.341 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Warning | 03:54:14.341 PM | 11 | MTA | ExecutionTracker | | | ExecutionTracker.ExitWait() - Unable to find ExecutionInfo for ExecutionArgs: 768151d6-08ca-4068-922d-fc07fb69247f
Verbose | 03:54:14.341 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Warning | 03:54:14.341 PM | 11 | MTA | ExecutionTracker | | | ExecutionTracker.EnterWait() - Unable to find ExecutionInfo for ExecutionArgs: 768151d6-08ca-4068-922d-fc07fb69247f
Verbose | 03:54:14.341 PM | 11 | MTA | ExecutionTracker | | | GetExecutionInfo. Could not resolve InitiatingEventArgs. May be EntryPoint invoked thru code instead of an automation.
Warning | 03:54:14.341 PM | 11 | MTA | ExecutionTracker | | | ExecutionTracker.ExitWait() - Unable to find ExecutionInfo for ExecutionArgs: 768151d6-08ca-4068-922d-fc07fb69247f

Any idea what could be going wrong?

***Edited by Moderator: Lochan to update platform capability tags***

Robotic Process Automation
Moderation Team has archived post
Share this page LinkedIn