<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged dbupgrade</title>
<link>https://overflow.efficy.io/?qa=tag/dbupgrade</link>
<description>Powered by Question2Answer</description>
<item>
<title>Why is SYS_CALENDAR not supplemented to 2030 for example with an db-upgrade?</title>
<link>https://overflow.efficy.io/?qa=5185/why-syscalendar-not-supplemented-2030-example-with-upgrade</link>
<description>&lt;p&gt;Why is SYS_CALENDAR not supplemented to the end of 2030 for example with an (db) upgrade?&lt;/p&gt;

&lt;p&gt;On older created databases, SYS_CALENDAR runs only until 2020. &lt;br&gt;
After several upgrades the table is still not supplemented.&lt;/p&gt;

&lt;p&gt;My Example: RUNA is now 11.1. SYS_CALENDAR runs until the end of 2020.&lt;/p&gt;

&lt;p&gt;Be aware: I will supplement SYS_CALENDAR on the RUNA database myself, with an script.&lt;/p&gt;

&lt;p&gt;Second question: Does anyone know where SYS_CALENDAR is used for, other then reporting?&lt;/p&gt;
</description>
<category>Reporting Solutions</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5185/why-syscalendar-not-supplemented-2030-example-with-upgrade</guid>
<pubDate>Tue, 14 Jan 2020 08:02:56 +0000</pubDate>
</item>
<item>
<title>Issue creating new contact + action in 11.2</title>
<link>https://overflow.efficy.io/?qa=4124/issue-creating-new-contact-action-in-11-2</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;A cloud customer (VCK) has just upgraded to efficy 11.2 build 16718 but there is a problem when the client tries to create a new contact (see screenshot below).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=5456546362472524540&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;This only happens when creating a new contact and only for the contact module.&lt;/p&gt;

&lt;p&gt;Another issue happens when trying to create a new appointment (not task, so only when using the agenda). See screen below.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=1021571769434811250&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;There is very little custom and the problem persists without custom.&lt;br&gt;
My guess is there is a problem with the database structure but i can't seem to find the causes. I have upgraded the DB with the designer but no luck.&lt;/p&gt;

&lt;p&gt;Any advice would be welcome.&lt;/p&gt;

&lt;p&gt;Thx.&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4124/issue-creating-new-contact-action-in-11-2</guid>
<pubDate>Fri, 19 Apr 2019 12:43:27 +0000</pubDate>
</item>
<item>
<title>DB Upgrade - missing database schema</title>
<link>https://overflow.efficy.io/?qa=3763/db-upgrade-missing-database-schema</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;For a customer we changed the DB User name, in order to make it worked, we have : &lt;br&gt;
1- change the DB Schema (following the post : &lt;a rel=&quot;nofollow&quot; href=&quot;https://overflow.efficy.com/?qa=807/mssql-server-how-to-change-owner-name&quot;&gt;https://overflow.efficy.com/?qa=807/mssql-server-how-to-change-owner-name&lt;/a&gt; )&lt;br&gt;
2- change the Efficy Admin name in ACC_ACCOUNTS&lt;br&gt;
3- change the login in Alias manager&lt;/p&gt;

&lt;p&gt;We then kill the com+ and we tried to do an upgrade DB but we encountered issues with the SQL function because they are not prefixed with the schema.&lt;/p&gt;

&lt;p&gt;We look at a local DBUpgrade script and in my local environnment the function are prefixed for instance below we can see &lt;strong&gt;ADMINR14832.&lt;/strong&gt;GET&lt;em&gt;OPPORTUNI&lt;/em&gt;COMPETITORS_VAL ... on the customer database we dont have the prefix. &lt;/p&gt;

&lt;p&gt;So my question is how the UpgradeDb.exe tool is retrieving the database Schema, in order for us to check if we missed something in DB ?&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;create view R_OPPORTUNITIES as select OPPORTUNITIES.*,
(select FULLNAME from ACC_ACCOUNTS L1 where L1.K_USER=OPPORTUNITIES.MANAGER) as R_MANAGER,
(select STATUS from LK_OPPO_STATUS L2 where L2.K_OPPO_STATUS=OPPORTUNITIES.STATUS) as R_STATUS,
(select NATURE from LK_OPPO_NATURE L3 where L3.K_OPPO_NATURE=OPPORTUNITIES.NATURE) as R_NATURE,
ADMINR14832.GET_OPPORTUNI_COMPETITORS_VAL(COMPETITORS) as R_COMPETITORS,
(select COMPETITOR from LK_OPPO_COMPET L4 where L4.K_OPPO_COMPET=OPPORTUNITIES.LOSTAGAINST) as R_LOSTAGAINST,
(select CODE from LK_CURRCY L5 where L5.K_CURRCY=OPPORTUNITIES.CURRCY) as R_CURRCY from OPPORTUNITIES
go
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3763/db-upgrade-missing-database-schema</guid>
<pubDate>Mon, 17 Dec 2018 16:53:03 +0000</pubDate>
</item>
<item>
<title>Upgrade from 7.0.25 to 10.2.31 gives weird error ( due to new Standard Category that was already existing in custom )</title>
<link>https://overflow.efficy.io/?qa=2601/upgrade-gives-error-standard-category-already-existing-custom</link>
<description>&lt;p&gt;When upgrading from 7.0.25 to 10.2.31 the DbUpgrade.exe gives weird error&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=6780085717490921630&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When looking the generated upgrade script, he tries to create twice the R&lt;em&gt;CONT$EMPLOYEE view, the second time with a TEAM column that doesn't even exist and that points to LK&lt;/em&gt;CONT&lt;em&gt;TEAM which doesn't exist either.&lt;br&gt;
Also no trace of these non existing table and field are found in SYS&lt;/em&gt;TABLES or SYS_FIELDS....&lt;/strong&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;create view R_CONT$EMPLOYEE as select CONT$EMPLOYEE.*,
(select F_ENTITY_NAME from LK_PROJ_ENTITY L1 where L1.K_PROJ_ENTITY=CONT$EMPLOYEE.F_ENTITY) as R_F_ENTITY,
(select F_COST_CAT_NAME from LK_COST_CATEGORY L2 where L2.K_COST_CATEGORY=CONT$EMPLOYEE.F_COST_CATEGORY) as R_F_COST_CATEGORY,
(select F_STD_UTIL_RATE_ from LK_STD_UTIL_RATE L3 where L3.K_STD_UTIL_RATE=CONT$EMPLOYEE.F_STDUTILRATE) as R_F_STDUTILRATE from CONT$EMPLOYEE
go


create view R_CONT$EMPLOYEE as select CONT$EMPLOYEE.*,
(select TEAM from LK_CONT_TEAM L1 where L1.K_CONT_TEAM=CONT$EMPLOYEE.TEAM) as R_TEAM from CONT$EMPLOYEE
go
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Somewhere there must be something in the DB that causes this but where can I look ?&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2601/upgrade-gives-error-standard-category-already-existing-custom</guid>
<pubDate>Tue, 11 Jul 2017 13:34:19 +0000</pubDate>
</item>
<item>
<title>Error on DB Upgrade from version 8.0.78 to 10.2.12</title>
<link>https://overflow.efficy.io/?qa=2311/error-on-db-upgrade-from-version-8-0-78-to-10-2-12</link>
<description>&lt;p&gt;Hello Everyone, &lt;/p&gt;

&lt;p&gt;I'm trying to upgrade a db from version 8.0.78 to 10.2.12 but I'm getting the following error message: &lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=17269899940110121726&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;Can someone help me on what I have to do? &lt;/p&gt;

&lt;p&gt;KR, &lt;/p&gt;

&lt;p&gt;Prince.&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2311/error-on-db-upgrade-from-version-8-0-78-to-10-2-12</guid>
<pubDate>Wed, 22 Feb 2017 09:05:09 +0000</pubDate>
</item>
<item>
<title>DBUpgrade - Subquery returned more than one value</title>
<link>https://overflow.efficy.io/?qa=1933/dbupgrade-subquery-returned-more-than-one-value</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;We are getting this error 'Subquery returned more than one value...' when clicking on apply in the designer or using dbupgrade.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=11432906479868981802&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;When we try to find a duplicate object in the database by querying the sys.objects table we don't find it.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=9843609837811133564&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;What could be the cause here? &lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1933/dbupgrade-subquery-returned-more-than-one-value</guid>
<pubDate>Fri, 07 Oct 2016 14:53:34 +0000</pubDate>
</item>
</channel>
</rss>