Learn More





Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Update Site Settings Error - Subquery returned more than 1 valueUpdate Site Settings Error - Subquery returned more than 1 value
New Post
8/6/2015 8:28 PM

Hi all

I have one DNN install (v7.4.1) which is giving grief, I initially added a default value to the Country field but when I attempted to reverse it - by removing that value and updating the property I received the following Site Settings Error (from Log Viewer):


InnerMessage:Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.


   at System.Data.SqlClient.SqlConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection. (SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryHasMoreRows(Boolean& moreRows)
   at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more)
   at System.Data.SqlClient.SqlDataReader.Read()
   at System.Data.SqlClient.SqlCommand.CompleteExecuteScalar(SqlDataReader ds, Boolean returnSqlValue)
   at System.Data.SqlClient.SqlCommand.ExecuteScalar()
   at PetaPoco.Database.ExecuteScalar[T](String sql, Object[] args)
   at DotNetNuke.Data.PetaPoco.PetaPocoHelper.ExecuteScalar[T](String connectionString, CommandType type, Int32 timeout, String sql, Object[] args)
   at DotNetNuke.Data.SqlDataProvider.ExecuteScalar[T](String procedureName, Object[] commandParameters)
   at DotNetNuke.Data.DataProvider.GetDuplicateEmailCount(Int32 portalId)
   at DotNetNuke.Entities.Users.UserController.GetDuplicateEmailCount()
   at DesktopModules.Admin.Portals.SiteSettings.UpdatePortal(Object sender, EventArgs e)


I now receive that error every time I click Update in Site Settings.


New Post
8/19/2015 8:19 PM

For anyone interested, I did a direct connection to the db and found that since the 7.4.1 a few duplicate email addresses had been created.


Finding those duplicate user accounts (email addresses) and deleting them (and purging) fixed it.

New Post
8/20/2015 3:47 AM
how was it possible to register multiple users with same Email address, if you turned on the requirement for unique emails?

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group   European Network of DotNetNuke Professionals

Speed up your DNN Websites with TurboDNN
New Post
8/20/2015 4:21 AM
Hi Sebastian

I'm not entirely sure how it happened, but there were a few duplicate accounts that existed prior to the update - most likely due to an import.


HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Update Site Settings Error - Subquery returned more than 1 valueUpdate Site Settings Error - Subquery returned more than 1 value

These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
Try Evoq
For Free
Start Free Trial
a Demo
See Evoq Live
Need More Information?