<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged custom-entity</title>
<link>https://overflow.efficy.io/?qa=tag/custom-entity</link>
<description>Powered by Question2Answer</description>
<item>
<title>Error of duplicate key when merging Custom entities records</title>
<link>https://overflow.efficy.io/?qa=7065/error-of-duplicate-key-when-merging-custom-entities-records</link>
<description>&lt;p&gt;For a customer, we are trying to activate the merge duplicate on a custom entity &quot;ENOP&quot;, we follow the Overflow guide : &lt;a rel=&quot;nofollow&quot; href=&quot;https://overflow.efficy.io/?qa=1039/how-to-provide-the-merge-functionnality-for-an-entity&amp;amp;show=1039#q1039&quot;&gt;&lt;/a&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://overflow.efficy.io/?qa=1039/how-to-provide-the-merge-functionnality-for-an-entity&amp;amp;show=1039#q1039&quot;&gt;https://overflow.efficy.io/?qa=1039/how-to-provide-the-merge-functionnality-for-an-entity&amp;amp;show=1039#q1039&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;we create the &lt;code&gt;Enop_Enop2&lt;/code&gt; ... even if I don't understand why we need this view since we already have the &lt;code&gt;Enop_Enop&lt;/code&gt; view ??&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=9846551845775766468&quot; alt=&quot;SYS_TABLEVIEWS&quot;&gt;&lt;/p&gt;

&lt;p&gt;we setup the the sys_entities &quot;DuplicateView&quot;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=8109970075294419661&quot; alt=&quot;SYS_ENTITIES&quot;&gt;&lt;/p&gt;

&lt;p&gt;And we add in the &lt;code&gt;SYS_ENTITYVIEW&lt;/code&gt; the &quot;EnopMerge&quot; entityView&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=2706112514497476795&quot; alt=&quot;SYS_ENTITYVIEWS&quot;&gt;&lt;/p&gt;

&lt;p&gt;Here is more detail of the TABLEVIEWS column&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;Enop;Enop_User=User;Enop_Comp=Comp;Enop_Cont=Cont;Enop_Proj=Proj;Enop_Publ=Publ;Enop_Prof=Prof;Docu_Enop=Docu;Acti_Enop=Acti;Enop_Mail=Mail;Enop_Enop=Enop;Enop_Enop2;Ctrt_Enop=Ctrt;Fina_Enop=Fina;Cout_Enop=Cout;Actv_Enop=Actv;Appe_Enop=Appe;Reap_Enop=Reap;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But when we try to merge 2 enops together we are getting the following error&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=8144828042532111169&quot; alt=&quot;ERROR&quot;&gt;&lt;/p&gt;

&lt;p&gt;We checked the links in the Enop-Enop relations but there is no duplicates for the enop keys 26 and 272 &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=9176802495557870863&quot; alt=&quot;DB Data&quot;&gt;&lt;/p&gt;

&lt;p&gt;So now we are stuck and we don't understand why we have this behaviour, do you have any ideas ?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=7065/error-of-duplicate-key-when-merging-custom-entities-records</guid>
<pubDate>Thu, 23 May 2024 17:38:24 +0000</pubDate>
</item>
<item>
<title>Delete a custom entity</title>
<link>https://overflow.efficy.io/?qa=4326/delete-a-custom-entity</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;In one of my project, my customer create a custom entity into the designer that we really need to destroy before going live.&lt;/p&gt;

&lt;p&gt;I need to destroy all fields, tables, relation tables, forms, ... linked to this entity. There no data inside and no code mention it into Efficy or into the custom. &lt;/p&gt;

&lt;p&gt;How to do it properly?&lt;/p&gt;

&lt;p&gt;Thanks in advance for your help.&lt;/p&gt;

&lt;p&gt;Laurent&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4326/delete-a-custom-entity</guid>
<pubDate>Thu, 23 May 2019 15:05:17 +0000</pubDate>
</item>
</channel>
</rss>