Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] Error dupl...
 
Notifications
Clear all

[SOLVED] Error duplicate entry during migration V10.1 to V11.0

4 Posts
2 Users
0 Reactions
3,177 Views
Tony
 Tony
(@tony44)
Posts: 131
Active Member
Topic starter
 
[#9122]

Hello,

On a test environment, I updated from V10.1.4 to V11.0.1.
The errors below appeared at the end of the migration.
How to fix the issue ?

2023-10-19 00:44:24.704 ** ERROR ** [V10.1.4] Exception-[23000] SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '41' for key 'PRIMARY'
2023-10-19 00:44:24.706 ** ERROR ** [V10.1.4]    For query : INSERT INTO `linkable` (`id`,`name`,`idle`, idDefaultLinkable) VALUES (41,'ActivityExpense',0,null);
2023-10-19 00:44:24.707 ** ERROR ** [V10.1.4]    Strack trace :
2023-10-19 00:44:24.707 ** ERROR ** [V10.1.4]    #0 Sql->query called at [C:Program Files (x86)EasyPHP-Devserver-17eds-wwwprojeqtordbmaintenanceFunctions.php:72]
2023-10-19 00:44:24.707 ** ERROR ** [V10.1.4]    #1 runScript called at [C:Program Files (x86)EasyPHP-Devserver-17eds-wwwprojeqtordbmaintenance.php:178]
2023-10-19 00:44:24.708 ** ERROR ** [V10.1.4]    #2 include called at [C:Program Files (x86)EasyPHP-Devserver-17eds-wwwprojeqtortoolloginCheck.php:144]
2023-10-19 00:44:24.713 ** ERROR ** [V10.1.4] Exception-[23000] SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '50' for key 'PRIMARY'
2023-10-19 00:44:24.713 ** ERROR ** [V10.1.4]    For query : INSERT INTO `mailable` (id, name, idle) VALUES (50, 'ActivityExpense', 0); 2023-10-19 00:44:24.714 ** ERROR ** [V10.1.4]    Strack trace :
2023-10-19 00:44:24.714 ** ERROR ** [V10.1.4]    #0 Sql->query called at [C:Program Files (x86)EasyPHP-Devserver-17eds-wwwprojeqtordbmaintenanceFunctions.php:72]
2023-10-19 00:44:24.715 ** ERROR ** [V10.1.4]    #1 runScript called at [C:Program Files (x86)EasyPHP-Devserver-17eds-wwwprojeqtordbmaintenance.php:178]
2023-10-19 00:44:24.715 ** ERROR ** [V10.1.4]    #2 include called at [C:Program Files (x86)EasyPHP-Devserver-17eds-wwwprojeqtortoolloginCheck.php:144]

Thanks


Tony44

 
Posted : 27 Oct 2023 0H55
Tony
 Tony
(@tony44)
Posts: 131
Active Member
Topic starter
 

Can I apply the fix shown here ?
https://www.projeqtor.org/fr/forum-fr/2-submit-issues/13077-error-message-update-v10-3-6-to-v10-4-4#35794


Tony44

 
Posted : 27 Oct 2023 1H03
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

First check on any item (activity for instace) to add a link.
On the pop-up you have "linked item type".
If this list contains Activity Expense, you don't have anything to do.
If it does not, yes, apply the fix proposed.


 
Posted : 27 Oct 2023 19H07
Tony
 Tony
(@tony44)
Posts: 131
Active Member
Topic starter
 

Activity Expense was indeed missing in the list "linked item type".
It appeared after applying the fix.

Thanks !


Tony44

 
Posted : 28 Oct 2023 18H35
Share:

Scroll to Top