Hello to everyone!
I'm transferring multiple documents from SAP with IBM RPA. After a while I get an error in the ocr part. I couldn't find any solution.
This is my code:
ocr --selector "XPath" --ocrprovider "Abbyy" --similarity 100 --language "en-US" --xpath "/root/GuiTitlebar[1]" text=value
And this is the error:
System.Runtime.InteropServices.COMException (0x8000000A): The data necessary to complete this operation is not yet available. (Exception from HRESULT: 0x8000000A)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
at SAPFEWSELib.ISapControlTarget.get_ScreenLeft()
at WDG.Automation.Runtime.Sap.SAPControl.get_Bounds()
at WDG.Automation.Runtime.Desktop.ControlAdapter.CaptureImageCore(WindowScreenCaptureAlgorithm algorithm, Rectangle rect, ElementHandle handle)
at WDG.Automation.Runtime.Desktop.ControlAdapter.CaptureImage(WindowScreenCaptureAlgorithm algorithm)
at WDG.Automation.Windows.OcrCommand.<OcrOnControl>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WDG.Automation.Windows.OcrCommand.<PerformOcr>d__38.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at WDG.Automation.Windows.OcrCommand.<ExecuteCore>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at WDG.Automation.Language.CommandInterpreter.<Run>d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at WDG.Automation.Language.ScriptInterpreter.<RunCore>d__17.MoveNext()
Can you help me?
------------------------------
Jale Seneloglu
------------------------------