Find imageが使えない

find imageなどのimage関係のアクティビティを利用しようとすると、以下のエラーが出て実行できません。

Message: The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception.

Exception Type: ImageOperationException

UiPath.Core.ImageOperationException: The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception. —> System.TypeInitializationException: The type initializer for ‘Emgu.CV.CvInvoke’ threw an exception. —> System.DllNotFoundException: Unable to load DLL ‘cvextern’: 指定されたモジュールが見つかりません。 (Exception from HRESULT: 0x8007007E)
at Emgu.CV.CvInvoke.RedirectError(CvErrorCallback errorHandler, IntPtr userdata, IntPtr prevUserdata)
at Emgu.CV.CvInvoke…cctor()
— End of inner exception stack trace —
at Emgu.CV.Image2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) at Emgu.CV.Image2.set_Bitmap(Bitmap value)
at UiPath.Vision.Detectors.BaseDetector…ctor(Bitmap image)
at UiPath.Vision.UiImage.Find(UiImage target, Double accuracy)
at UiPath.Core.Image.Find(Image image, Double accuracy)
— End of inner exception stack trace —
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)



OS:Windows Server 2008 R2(KB963697適用済み、DesktopExperience機能ON)

Hey @ken15


English - it is due to unmanaged DLL dependencies.

UiPath StudioのOS要件と前提条件を確認してください。Windows 7のアップデートKB2533623をインストールすると、問題は解決しました。 :slight_smile:

English - please review UiPath Studio’s OS requirments and prerequisites.Install windows 7 update KB2533623 the problem has been resolved. :slight_smile:


1 Like

Hey @aksh1yadav


Windows 7のアップデートKB2533623は、適用できませんでした。
KB2533623のWindows Server 2008 R2用も存在していたため、適用しようとしましたが、適用済みの別のパッチに含まれていたため、再適用はできませんでした。


English -
Thank you for your answer.

Because we are using Windows Server 2008 R2, Windows 7 update KB 2533623 could not be applied.
Update KB 2533623 of Windows Server 2008 R2 also existed, so I attempted to apply it, but it was included in another applied patch and it was not reapplied.

[Current environment]
Windows Server 2008 R2 (KB963697 already applied, DesktopExperience enabled)
.NetFramework 4.7.2 installed

Does anyone know other possible causes?


Check again this link please, you ll need to install/reinstall all the indicated KBs and Roles

@ken15 You will need to add roles for the services under the server manager. You can probably go through this video which shows step by step how to add roles or probably go through the instructions listed here:

I was facing the same issue on my Windows 2008 R2 Server and after adding specific roles it fixed the image activities.