cancel
Showing results for 
Search instead for 
Did you mean: 

An unknown error occured in OnBase Studio 16. How do I stop this error?

John_Marshall
Champ in-the-making
Champ in-the-making

It's been happening whenever I try to open some of the C# unity scripts. I think the IDE is trying to do some frivolous lookup in the background that fails and creates the popup. 

Restarting Studio doesn't work.

Here's the stacktrace: System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, Object[] args)
at Hyland.Applications.OnBase.Studio.Controls.PropertiesWnd.ViewModel.PropertiesWndViewModel.GetPropertyPagesForObject(Object selectedObject)
at Hyland.Applications.OnBase.Studio.Controls.PropertiesWnd.ViewModel.PropertiesWndViewModel.TryCreateViewModel(Object selectedObject, PropertiesWndViewModel& viewModel)
at Hyland.Applications.OnBase.Studio.Controls.PropertiesWnd.PropertiesWndControl.CreateViewModel(Object selectedObject, RepositoryPath selectedRepositoryPath)
at Hyland.Applications.OnBase.Studio.Controls.PropertiesWnd.PropertiesWndControl.OnSelectedObjectChanged_Internal()
at Hyland.Applications.OnBase.Studio.Controls.PropertiesWnd.PropertiesWndControl. b__12(Object s, EventArgs a)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Inner exception: Hyland.Public.ServiceException

Object reference not set to an instance of an object.
at Hyland.Types.Response.Validate()
at Hyland.Unity.Configuration.ServiceAccess.executeRequest(Request request)
at Hyland.Unity.Configuration.ServiceAccess.GetProjectSecurity(Int64 projectID, List`1& hiddenRights)
at Hyland.Unity.Configuration.UnityConfiguration.GetProjectSecurity(Int64 projectID, List`1& hiddenRights)
at Hyland.Configuration.Repository.RepUnityConfiguration. c__DisplayClass5. b__4()
at Hyland.Configuration.Repository.RepUnityConfiguration.InvokeFunc(Func`1 fn)
at Hyland.Configuration.Repository.RepUnityConfiguration.GetProjectSecurity(Int64 projectID, List`1& hiddenRights)
at Hyland.Core.Studio.UnityScripts.UnityProjectManager. d__13.MoveNext()
at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
at Hyland.Core.Studio.UnityScripts.UnityProject. b__1()
at System.Lazy`1.CreateValue()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Lazy`1.get_Value()
at Hyland.Core.Studio.UnityScripts.UnityProject.get_Permissions()
at Hyland.Core.Studio.UnityScripts.PropertyPages.CodePermissionsPage..ctor(UnityScriptEditor editor)
Server stack trace -->
at Hyland.Core.Unity.Services.ConfigurationService.getProjectSecurity()
<-- end of server stack trace

1 REPLY 1

Kevin_Arth
Employee
Employee

Hello John,
First, thank you for posting your question to Community.

This behavior has been identified and addressed via SCR 251149. It has to do with the User Groups assigned to the Unity script. One or more of them no longer exists in OnBase (possibly deleted by an administrator), and so when the script is loading and it attempts to check the User Groups, the error occurs. This behavior has been corrected in all builds of OnBase 17.

Normally, I would recommend contacting your first line of support to have the specifics of your issue reviewed so that, if appropriate, you can be added to the SCR, but I know you've already done that and we've taken care of the rest. Thank you for your follow through, and, again, thank you for allowing us to address your concern.

Kevin Arth OCI, OCWV

Hyland Technical Support Analyst

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.