Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreThe category cannot be deleted once it is assigned child productsThe category cannot be deleted once it is assigned child products
Previous
 
Next
New Post
11/8/2007 8:12 PM
 

Hi,

Could you explain a little bit more? I never told you to drop table!? What is your problem exactly?

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
11/9/2007 2:38 AM
 

Gilles this is the identical problem I have been having, and as it seems your aware of it now I won't set up an account for you to see it on my site...thanks a heap for offering your help.  It is much appreciated.

 

I am of the opinion that this needs to be fixed ASAP.  It is a pretty big bug/error to have in a module that passed the release process.  If that is fixed, and the shipping changed to allow value based shipping costs...then I will be one very very content man!!!

 

Dave

 
New Post
11/9/2007 4:45 AM
 

Gilles Le Pigocher wrote

Hi,

Could you explain a little bit more? I never told you to drop table!? What is your problem exactly?

Gilles

My problem is as mentioned before, that it is not possible to delete a categorie which did have some products (they are deleted now). I get following error:

This category cannot be removed! Possible causes: one or more sub categories are dependent. One or more products are dependent.
DotNetNuke.Services.Exceptions.ModuleLoadException: The DELETE statement conflicted with the REFERENCE constraint "FK_dnn_Store_Products_dnn_Store_Categories". The conflict occurred in database "C:\DOTNETNUKE\APP_DATA\DATABASE.MDF", table "dbo.dnn_Store_Products", column 'CategoryID'. The statement has been terminated. ---> System.Data.SqlClient.SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_dnn_Store_Products_dnn_Store_Categories". The conflict occurred in database "C:\DOTNETNUKE\APP_DATA\DATABASE.MDF", table "dbo.dnn_Store_Products", column 'CategoryID'. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Modules.Store.Catalog.SqlDataProvider.DeleteCategory(Int32 CategoryID) at DotNetNuke.Modules.Store.Catalog.CategoryController.DeleteCategory(Int32 categoryID) at DotNetNuke.Modules.Store.WebControls.CategoryEdit.cmdDelete_Click(Object sender, EventArgs e) --- End of inner exception stack trace ---

And in my opinion this isn't a small thing, it's a basic feature of a store function which has to work properly. Once again, please look for a solution

 
New Post
11/9/2007 2:15 PM
 

Hi,

When a product is deleted, in fact it is not realy deleted. Because if at least one order contains this product, it can't be realy deleted. Then, the product is marked as "IsDeleted=true" in the products table.

When you try to delete a category, you can't delete it if at least one product is defined inside this category or if this category contains at least one sub category. In other words the category must be empty to be deleted. This is why you receive the message: This category cannot be removed! Possible causes: one or more sub categories are dependent. One or more products are dependent. You have two choices:

  • Change the category of the related products to an other category, do the same for his sub categories.
  • Check Archived in the category form. Then this category and his sub category and linked products will be no longer displayed.

Gilles


We (team members) are Humans offering their knowledge, their work and their spare time FOR FREE to benefit the community. It would be so particularly appreciated that your messages begin with "Hello" and end with "Thank you" or any other form of politeness. Ask yourself what your reaction would be, if you were approached by me (a total stranger) on the street to ask you something without saying "Hello" nor "Thank you"? After several years of services dedicated to the community, I begin to be tired to read requests without any form of politeness.
 
New Post
11/9/2007 3:40 PM
 

No order has been placed in my store, it's just for showing items purposes. Archieving the category does work, okay good for now. but i still would like to delete it. Since you know what the problem is and how it can be solved (code wise) i don't understand why you don't bring a patch or something like that.

How didn't you guys seen that bug while testing the module before releasing ?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsStoreStoreThe category cannot be deleted once it is assigned child productsThe category cannot be deleted once it is assigned child products


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out