Error when displaying web page in dashboard sheet in MES

Hello All,
I have a request to add a web page to MES.
I made a dashboard and added the web page to it as a url view. It works fine.
Using the new sheet wizard in MES, I added a sheet for that dashboard to display.
When I click on the tab it displays the error below.
Is there any way I can get this to work?

Thanks!

Application Error

Exception caught in: Ice.Lib.EpiClientLib

Error Detail

Message: The process caller failed to invoke method PerformSearch in Ice.Lib.Searches.EpiSearchEngine in Ice.Lib.EpiClientLib.dll
Inner Exception Message: Exception has been thrown by the target of an invocation.
Program: Ice.Lib.EpiClientLib.dll
Method: InvokeReflectedMethod

Client Stack Trace

at Ice.Lib.Framework.PCallReflector.InvokeReflectedMethod(MethodInfo Method, Object Object, Object[] MethodParams, String className, String assemblyName)
at Ice.Lib.Framework.PCallReflector.LaunchDotNet(String assemblyName, String className, Hashtable ctorList, String methodName, Hashtable methodList)

Inner Exception

Exception has been thrown by the target of an invocation.

Inner Stack Trace

at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Ice.Lib.Framework.PCallReflector.InvokeReflectedMethod(MethodInfo Method, Object Object, Object[] MethodParams, String className, String assemblyName)

Inner Exception

Error accessing the database: Incorrect syntax near ‘)’.

Inner Stack Trace

at Ice.Lib.Searches.EpiSearchEngine.invokeSearch(String AdapterName, SearchOptions opts)
at Ice.Lib.Searches.EpiSearchEngine.InvokeSearch(String AdapterName, String Mode, Boolean singleSelect, Boolean showForm, String preFilter, String like, Object sender)
at Ice.Lib.Searches.EpiSearchEngine.PerformSearch(String AdapterName, String Mode, String preFilter, Object sender)

Inner Exception

Incorrect syntax near ‘)’.

Inner Stack Trace

Try a basic URL like https://google.com and see if you get the same error. It may be your URL format.

I tried the url you posted and it works inside the dashboard but will gives an error when in MES.

To confirm, does this occurs because it is added as a sheet, but does not occur if simply opening the dashboard from MES?

I am not sure what you mean by this. Is there another way to add a web view to MES other than using the sheet wizard?

There are many ways to add a webpage to an Epicor screen, but it would
depend on what it needs to accomplish. The dashboard sheet is obviously
easiest as a wizard walks you through it, but there are limitations to what
the dashboard as a sheet can do (although I would not think this is one of
them).

I personally always use a customization to add a little code to display a
web page as it is much lighter on the system. If the URL is linked to data,
then a little more code is required. Either way, I would issue a support
call.

1 Like