|
Member
|
pbs-buussys
-
11/16/2011 2:37:16 AM
Error during upgrade (Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.)
Hi,
I am running the automatic upgrade from 5.5 V2 -> 6.0.
It ends with an error: "Running SQL script (upgrade.sql) Failed to run SQLscript: Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."
Trying to run it manually shows me the exact 4 statements causing the error, which is:
UPDATE CMS_SettingsCategory SET CategoryIconPath = NULL, CategoryIsCustom = 0, CategoryIsGroup = 1, CategoryParentID = (SELECT CategoryID FROM CMS_SettingsCategory WHERE CategoryName = 'CMS.FacebookConnect') WHERE CategoryName = 'CMS.FacebookConnect.General';
UPDATE CMS_SettingsCategory SET CategoryIconPath = NULL, CategoryIsCustom = 0, CategoryIsGroup = 1, CategoryParentID = (SELECT CategoryID FROM CMS_SettingsCategory WHERE CategoryName = 'CMS.Integration.SharePoint') WHERE CategoryName = 'CMS.SharePoint.General';
UPDATE CMS_SettingsCategory SET CategoryIconPath = NULL, CategoryIsCustom = 0, CategoryIsGroup = 1, CategoryParentID = (SELECT CategoryID FROM CMS_SettingsCategory WHERE CategoryName = 'CMS.MetaWeblogAPI') WHERE CategoryName = 'CMS.MetaWeblogAPI.General';
UPDATE CMS_SettingsCategory SET CategoryIconPath = NULL, CategoryIsCustom = 0, CategoryIsGroup = 1, CategoryParentID = (SELECT CategoryID FROM CMS_SettingsCategory WHERE CategoryName = 'CMS.OpenID') WHERE CategoryName = 'CMS.OpenID.General';
The error message(s) is correct the select do return more than one record so it doesn't make sense!
I dont believe that I have been messing with those tables, so the question is how do I proceed?
Thanks!
Per
|
|
|
Kentico Developer
|
kentico_ivanat
-
11/16/2011 6:30:21 AM
RE:Error during upgrade (Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.)
Hi,
the quick fix is to remove duplicated records.
I discussed this issue with our developer and we are not sure how these duplicated rows were created.
Would it be possible to send us your database backup? Then we can try to take a closer look at it.
Best regards, Ivana Tomanickova
|
|
|
Member
|
pbs-buussys
-
11/16/2011 8:30:13 AM
RE:Error during upgrade (Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.)
Hi Ivana,
OK, I will restore backup try and cleanup the "duplicates" and run upgrade again.
My zipped backup is only 13 MB, so I guess it could be in a e-mail, do you want the backup, even if I solve the problem? To prevent others from having the same problem.
I will properly do it friday and revert to you regarding the result.
Per
|
|
|
Kentico Developer
|
kentico_ivanat
-
11/21/2011 2:11:19 AM
RE:Error during upgrade (Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.)
Hi,
Yes, please send the backup to the support@kentico.com. We will take a look at it and maybe figure out what was wrong. Alternatively, you can upload it to our ftp server.
Thank you in advance.
Best regards, Ivana Tomanickova
|
|
|
Member
|
pbs-buussys
-
11/23/2011 3:59:28 AM
RE:Error during upgrade (Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.)
Hi,
Deleting the 4 records from CMS_SettingsCategory solved the problems and the upgrade went through.
After some problems I even managed to build the solution.
Only one problem remains but I dont think it is related to the upgrade so I post it elsewhere.
Do you still need my backup?
Per
|
|
|
Kentico Developer
|
kentico_ivanat
-
11/24/2011 3:22:22 AM
RE:Error during upgrade (Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.)
Hi,
thank you for update.
Another customer sent us his backup so we probably know where the issue was. In another version of the upgrade the issue with duplicates should be fixed.
Thank you for your help.
Best regards, Ivana Tomanickova
|
|
|