Forum  Discuss AliComm...  Getting Started...  Error when checking out
Previous Previous
 
Next Next
New Post 8/25/2008 9:19 AM
Resolved
  Bacus812
33 posts
No Ranking


Error when checking out 
Modified By Bacus812  on 8/25/2008 10:32:21 AM)

Frank,

 

I'm recieving this error during the check process when confirming the order.

 

Message: System.Exception: Unhandled Error: ---> NHibernate.ADOException: could not insert: [AliSuite.Commerce.DomainModel.Orders.Customer#03c03aba-ca95-46bd-b3f9-9b0300a5c7ad][SQL: INSERT INTO .AS_C_Customers (PortalId, FirstName, LastName, UserId, TaxExempt, UpdatedDate, BillingAddressId, ShippingAddressId, Id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)] ---> System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PK_AS_C_Customer'. Cannot insert duplicate key in object 'dbo.AS_C_Customers'. 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 NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) --- End of inner exception stack trace --- at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) at NHibernate.Impl.ScheduledInsertion.Execute() at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) at NHibernate.Impl.SessionImpl.Execute() at NHibernate.Impl.SessionImpl.Flush() at AliSuite.Core.NHSessionManager.CloseSession() at AliSuite.Commerce.HttpModules.NHibernateSessionModule.x3a2e282be4f474d3(Object xe0292b9ed559da7d, EventArgs xfbf34718e704c6bc) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --- End of inner exception stack trace ---

 

Also I'm running DNN version 04.08.02 and Alicommerce v2 with hot fix applied.

 

Please help this is now running on a live site for my client.

 

Thanks,

Bacus

 
New Post 8/25/2008 5:04 PM
  AliCommerce
1156 posts
1st Level Poster


Re: Error when checking out 
Modified By AliCommerce  on 8/25/2008 6:04:30 PM)

Please send us a HOST account by email and we'll investigate this for you. We may need to place some test orders to locate the issue.


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 8/25/2008 5:05 PM
  AliCommerce
1156 posts
1st Level Poster


Re: Error when checking out 
Modified By AliCommerce  on 8/25/2008 8:43:36 PM)

Did the checkout never work or it stopped working sometime?


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 8/25/2008 6:40 PM
  Bacus812
33 posts
No Ranking


Re: Error when checking out 

I'm not sure we because we just started testing the issue.

 
New Post 8/25/2008 7:25 PM
Accepted Answer 
  AliCommerce
1156 posts
1st Level Poster


Re: Error when checking out 
Modified By AliCommerce  on 8/25/2008 8:46:38 PM)

Did you apply 2.0.4 hot fix to your store? If yes, you're running alicommerce 2.0.3 and you should not have done that. To rectify this, please upgrade your store to alicommerce 2.0.4 using upgrade package and re-apply the hot fix.

Make sure you back up your store first, both dnn directory and database.

By the way, did you have back up of your store before applying hot fix? If yes, please keep it, as we might need it.


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 8/25/2008 7:27 PM
  AliCommerce
1156 posts
1st Level Poster


Re: Error when checking out 

If you can give me ftp access to your dnn directory, I can do the upgrade for you. Please make sure you back up everything first.


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 8/25/2008 7:51 PM
  Bacus812
33 posts
No Ranking


Re: Error when checking out 

Hi Frank,

Thanks for the quick response.  I followed your instructions and it seems to be working properly now. 

Best,

Bacus

 

 
New Post 8/25/2008 7:53 PM
  AliCommerce
1156 posts
1st Level Poster


Re: Error when checking out 

Cool, feel relieved. Go out for a walk now.


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
New Post 8/25/2008 7:54 PM
  Bacus812
33 posts
No Ranking


Re: Error when checking out 

We have a backup prior to the upgrade but it doesn't contain all of the product data in the Store.  Is there anything that comes to mind that I need to be concerned about or check for?

 
New Post 8/25/2008 8:04 PM
  AliCommerce
1156 posts
1st Level Poster


Re: Error when checking out 

Forget the old backups, do a fresh back up now. Please remove my account as I don't need it any more.


Frank Wang
Software Architect
AliCommerce.com
The best DNN eCommerce, shopping cart and store modules. 100% satisfaction guaranteed.
 
Previous Previous
 
Next Next
  Forum  Discuss AliComm...  Getting Started...  Error when checking out
Copyright 2008 by CandoSuite Terms Of Use Privacy Statement