Error Parent entity not found for entity 'Document'. Cannot generate filters

I’m not able to open screen with Bill Invoices (ERP). Screen with Purchase invoices works fine. The log shows the following error:

2021-07-27 15:13:52,755 [10] ERROR Origam.ServerCore.Controller.AbstractController - One or more errors occurred. (Parent entity not found for entity 'Document'. Cannot generate filters. (Parameter 'ParentEntityName')
Actual value was Document.)
System.AggregateException: One or more errors occurred. (Parent entity not found for entity 'Document'. Cannot generate filters. (Parameter 'ParentEntityName')
Actual value was Document.)
 ---> System.ArgumentOutOfRangeException: Parent entity not found for entity 'Document'. Cannot generate filters. (Parameter 'ParentEntityName')
Actual value was Document.
   at Origam.OrigamEngine.ModelXmlBuilders.FormXmlBuilder.GetXml(FormControlSet item, DataSet dataset, String name, Boolean isPreloaded, Guid menuId, Boolean forceReadOnly, String confirmSelectionChangeEntity, DataStructure structure) in D:\a\1\s\origam-source\Origam.OrigamEngine\ModelXmlBuilders\FormXmlBuilder.cs:line 998
   at Origam.OrigamEngine.ModelXmlBuilders.FormXmlBuilder.GetXml(FormControlSet item, String name, Boolean isPreloaded, Guid menuId, DataStructure structure, Boolean forceReadOnly, String confirmSelectionChangeEntity) in D:\a\1\s\origam-source\Origam.OrigamEngine\ModelXmlBuilders\FormXmlBuilder.cs:line 208
   at Origam.OrigamEngine.ModelXmlBuilders.FormXmlBuilder.GetXml(Guid menuId) in D:\a\1\s\origam-source\Origam.OrigamEngine\ModelXmlBuilders\FormXmlBuilder.cs:line 66
   at Origam.ServerCommon.FormSessionStore.GetFormXml() in D:\a\1\s\origam-source\Origam.ServerCommon\Session Stores\FormSessionStore.cs:line 522
   at Origam.ServerCommon.FormSessionStore.PrepareFormXml() in D:\a\1\s\origam-source\Origam.ServerCommon\Session Stores\FormSessionStore.cs:line 538
   at Origam.Server.UIManager.<>c__DisplayClass5_0.<InitUI>b__0() in D:\a\1\s\origam-source\Origam.ServerCommon\UIManager.cs:line 145
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.<>c.<.cctor>b__277_0(Object obj)
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at Origam.Server.UIManager.InitUI(UIRequest request, Boolean addChildSession, SessionStore parentSession, IBasicUIService basicUIService) in D:\a\1\s\origam-source\Origam.ServerCommon\UIManager.cs:line 199
   at Origam.ServerCore.Controller.UIServiceController.<>c__DisplayClass10_0.<InitUI>b__0() in D:\a\1\s\origam-source\Origam.ServerCore\Controller\UIServiceController.cs:line 122
   at Origam.ServerCore.Controller.AbstractController.RunWithErrorHandler(Func`1 func) in D:\a\1\s\origam-source\Origam.ServerCore\Controller\AbstractController.cs:line 87

Do you have the feature FLASH turned on? It was used in some projects (e.g. ERP) in order to separate the desktop and web functionality. Things marked !FLASH were only rendered on desktop. If it is not turned on it may try to add stuff to the screen that is not compatible with the web.

You can use a script like this to add it:

INSERT INTO OrigamFeatureList (Id, ReferenceCode, DisplayName, IsFeatureOn)
VALUES ('d0d6aa2d-9240-4729-91dd-d9d1e800c4ef', 'FLASH', 'Flash', 1)

Setting the feature FLASH to 1 resolved the error. Thank you.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.